Keep the window's name fixed in tmux

梦想的初衷 提交于 2019-11-27 09:07:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!