Reputation: 12704
I'm using bind-key + ,
to rename my windows, but as soon as I type a command the name reverts back to the current working directory.
Is it possible to make the window name permanent?
Upvotes: 24
Views: 18866
Reputation: 891
Per this superuser answer, I made the following change to ~/.tmux.conf
:
# NO, window name keeps changing
# set -g default-terminal "screen-256color"
# YES, window name sticks
set -g default-terminal "xterm-256color"
Upvotes: 1
Reputation: 532133
The automatic rename function is turned on. Add the following to your .tmux.conf
file (and/or run from the command line to have it take effect immediately):
set-window-option -g automatic-rename off
Upvotes: 15