问题
I'm new to tmux. I want to keep the windows' name fixed after I rename it. But after I renaming it, they keep changing when I execute the commands.
Is there any way that I can keep them in a static name?
回答1:
As shown in a comment to the main post: set-option -g allow-rename off
in your .tmux.conf
file
回答2:
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
回答3:
# 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.
回答4:
In my .zshrc file , add the following config, it solved this problem.
DISABLE_AUTO_TITLE=true
来源:https://stackoverflow.com/questions/6041178/keep-the-windows-name-fixed-in-tmux