Reputation: 2989
I want to keep the windows' name fixed after I rename it. But after I renaming it, they keep changing when I execute commands.
How can I keep them in a static name?
Upvotes: 250
Views: 52202
Reputation: 2913
.bashrc
or .zshrc
file and add this lineexport DISABLE_AUTO_TITLE=true
~/.tmux.conf
fileset-option -g allow-rename off
This can be done either from within the tmux, by pressing Ctrl+B
and then :
to bring up a command prompt, and typing:
:source-file ~/.tmux.conf
Or simply from a shell:
$ tmux source-file ~/.tmux.conf
Upvotes: 21
Reputation: 91
# set-window-option -g automatic-rename off
set-option -g allow-rename off
Comment the first one, and set the second one, in the ~/.tmux.conf It works for me.
Upvotes: 9
Reputation: 183
In my .zshrc file , add the following config, it solved this problem.
DISABLE_AUTO_TITLE=true
Upvotes: -6
Reputation: 2079
As shown in a comment to the main post: set-option -g allow-rename off
in your .tmux.conf
file
Upvotes: 179
Reputation: 1618
As suggested on the Super User link, setting the following variable in your .bashrc
or .zshrc
seems to solve the issue:
DISABLE_AUTO_TITLE=true
Upvotes: 15