Renaming a window in tmux
I use bind-key + ,
to rename my windows, but as soon as I type the command, the name reverts to my current working directory.
Can I make the window name permanent?
+3
Sam Selikoff
source
to share
2 answers
The auto rename feature is enabled. Add to your .tmux.conf
file (and / or run from the command line for it to take effect immediately):
set-window-option -g automatic-rename off
+2
chepner
source
to share
Per this superuser answer , I made the following change ~/.tmux.conf
:
# NO, window name keeps changing
# set -g default-terminal "screen-256color"
# YES, window name sticks
set -g default-terminal "xterm-256color"
+1
trailing slash
source
to share