Sam Selikoff
Sam Selikoff

Reputation: 12704

Renaming a window in tmux

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?

enter image description here

Upvotes: 24

Views: 18866

Answers (2)

trailing slash
trailing slash

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

chepner
chepner

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

Related Questions