问题描述
突然,在执行每个命令后,我的屏幕/tmux都开始更改窗口的名称.即使手动重命名(通过屏幕上的 或.
Suddenly, both my screen/tmux started changing my windows' names after every command. They keep changing the name to the value of $PROMPT_COMMAND
on every single action on the terminal, even after manually renaming them (by on screen or on tmux).
在tmux上,我已经尝试更改tmux.conf
设置以禁用窗口自动重命名功能,但似乎已被忽略.
On tmux I already tried to change the tmux.conf
settings to disable window auto renaming off, but seems that it was ignored.
我正在使用不带标准/etc/bashrc
配置文件的bash.我的发行版是Fedora 18.
I am using bash without the standard /etc/bashrc
configuration file. My distro is Fedora 18.
推荐答案
检查您的PS1
(如果已设置,还加上PS2
,PS3
或PS4
)是否为更改标题:
Check whether your PS1
(plus PS2
, PS3
or PS4
if those are set) is changing the title:
printf %q "$PS1" | grep -F '\\033'
这篇关于Tmux窗口标题不断重命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!