Tmux window title keeps renaming

user1363214 picture user1363214 · Jun 25, 2013 · Viewed 15.4k times · Source

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 Ctrl+A A on screen or Ctrl+B on tmux).

On tmux I already tried to change the tmux.conf settings to disable window auto renaming off, but seems that it was ignored.

I am using bash without the standard /etc/bashrc configuration file. My distro is Fedora 18.

Answer

Abid H. Mujtaba picture Abid H. Mujtaba · Apr 8, 2014

Add the following to your tmux config file:

set-option -g allow-rename off