我是 tmux 的新手。我想在重命名后保持 Windows 的名称不变。但是在我重命名它之后,当我执行命令时它们会不断变化。
有什么方法可以让它们保持静态名称?
如对主要帖子的评论所示:set-option -g allow-rename off
在您的.tmux.conf
文件中
正如超级用户链接.bashrc
所建议的那样,在您的or中设置以下变量.zshrc
似乎可以解决问题:
DISABLE_AUTO_TITLE=true
# set-window-option -g automatic-rename off
set-option -g allow-rename off
注释第一个,并设置第二个,在 ~/.tmux.conf 它对我有用。
.bashrc
或.zshrc
文件并添加此行export DISABLE_AUTO_TITLE=true
~/.tmux.conf
文件中set-option -g allow-rename off
这可以在 tmux 中完成,方法是按Ctrl+B
,然后调:
出命令提示符,然后键入:
:source-file ~/.tmux.conf
或者只是从一个外壳:
$ tmux source-file ~/.tmux.conf
在我的 .zshrc 文件中,添加以下配置,它解决了这个问题。
DISABLE_AUTO_TITLE=true