pre*_*ion 141
如主帖中的评论所示:set-option -g allow-rename off
在您的.tmux.conf
文件中
Moh*_*loo 19
.bashrc
或.zshrc
归档并添加此行export DISABLE_AUTO_TITLE=true
Run Code Online (Sandbox Code Playgroud)
~/.tmux.conf
文件中set-option -g allow-rename off
Run Code Online (Sandbox Code Playgroud)
这可以在 tmux 中完成,方法是按Ctrl+B
,然后:
调出命令提示符,然后键入:
:source-file ~/.tmux.conf
Run Code Online (Sandbox Code Playgroud)
或者简单地从 shell 中:
$ tmux source-file ~/.tmux.conf
Run Code Online (Sandbox Code Playgroud)
Jea*_*ado 12
如超级用户链接所示,在您的.bashrc
或.zshrc
似乎解决问题中设置以下变量:
DISABLE_AUTO_TITLE=true
Run Code Online (Sandbox Code Playgroud)
小智 6
# set-window-option -g automatic-rename off
set-option -g allow-rename off
Run Code Online (Sandbox Code Playgroud)
注释第一个,并在 ~/.tmux.conf 中设置第二个它对我有用。