Comments (4)
Hello,
Make sure you stop all tmux client and server processes.
Backup your existing .tmux.conf
file and try again following the installation steps as per documented in README.md
:
$ cd
$ rm -rf .tmux
$ git clone https://github.com/gpakosz/.tmux.git
$ ln -s .tmux/.tmux.conf
$ cp .tmux/.tmux.conf.local .
About your "may i ask why your file with "#", does it makes any sence?" question, I'm not sure I understand what you're referring to.
In both Bash and tmux, #
starts a comment and comment lines are ignored. Now there's a trick:
- the first line of
.tmux.conf
starts with# cat << ►_◄ > /dev/null
and later in the file there's a line starting with# ►_◄
. Those lines are both ignored by tmux, because they start with a#
- below the line starting with
# ►_◄
, all lines start with#
and they will be ignored by tmux as well - pay attention that those comment lines are in fact a whole shell script put behind comments, and it's important to notice all the lines start with
#
followed by a space. - now if you run the
cut -c3- ~/.tmux.conf
command, you notice that it takes~/.tmux.conf
and removes the first 2 columns of the file - removing the first 2 columns of the file transforms the valid tmux configuration file into a valid shell script
- when you pipe the result of
cut -c3- ~/.tmux.conf
tosh
, your shell evaluates thecat << ►_◄ > /dev/null
statement- remember,
cut -c3-
removed the first 2 columns, hence it removed the#
characters cat << ►_◄ > /dev/null
is a classic HEREDOC, I just used fancy Unicode characters- after having run
cut -c3-
, everything between the firstcat << ►_◄ > /dev/null
and the►_◄
line becomes an invalid truncated soup of tmux commands - but when your shell evaluates the
cat << ►_◄ > /dev/null
statement, all those truncated and invalid tmux commands are just sent to/dev/null
and everything after the►_◄
end of HEREDOC marker is a valid shell script
- remember,
Hope that sheds some light to how it works.
from .tmux.
Thank you for answering my question, my English is very poor, thank you for your patience;
now, I try this:
- I change into TMUX mode, and type Ctrl + b + m, and it displays "mouse mode : on", it seems it does work
- but i run "cut -c3- ~/.tmux.conf | sh -s apply_configuration" it displays "unkwon opration pane-borde-style"
can you help me to fix this? thank you very much, i'm not get used to markdown.......
from .tmux.
Which version of tmux are you using?
My configuration only works with tmux 1.9
, 2.0
or 2.1+
. If you use tmux 1.9
or 2.0
, use the corresponding branch of the configuration.
from .tmux.
I did it! I just use vertion 1.8, so,I update to lastest version , your configure have shown, thank you very much
from .tmux.
Related Issues (20)
- When using {battery_vbar} or {battery_hbar}, the battery status display does not take effect. HOT 1
- Changing prefix to <C-s> works but <C-a> continues to be another prefix even after unbind HOT 1
- Question: Change bg color of status bar if prefix is active HOT 2
- unable to work with nvim-osc52 HOT 1
- .tmux.conf is ignored HOT 1
- ${TERM} always set to tmux-256color, how to change it HOT 4
- Fail to minimize back to original window/pane HOT 1
- Suggestion for keybinds HOT 2
- Statusline broken after update HOT 1
- I had some problems during the installation process
- The shortcut keys set using ohmytmux take effect, but the style is still the default style. HOT 14
- Unable to get this to work at all, using .config and migrating from dracula/snazzy (OSX Sonoma 14.4.1 M3) HOT 2
- Plugin setup and configuration is entirely skipped HOT 20
- Status Bar custom module disappearing HOT 9
- Command prompt position -- don't hide status line HOT 4
- Can't get status line to update HOT 3
- Command `<prefix> e` is not opening `.tmux.conf.local` HOT 7
- How to enable paste from system clipboard in mouse mode (Mobaxterm) HOT 2
- small arraw symbol in macos terminal app HOT 1
- ProxyCommand breaks ssh integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .tmux.