Keep the window's name fixed in tmux

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?


Solution 1:

As shown in a comment to the main post: set-option -g allow-rename off in your .tmux.conf file

Solution 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