Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renaming a window in tmux

Tags:

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

like image 939
Sam Selikoff Avatar asked Aug 07 '14 15:08

Sam Selikoff


People also ask

How do I change tmux panes?

Tmux uses the keybinding 'Prefix' followed by 'Ctrl+o' to cycle around the panes. When you use this key-binding for the first time, it moves the pane in one position clockwise.

How do I make a new tmux window?

You can also access a tmux command line and type tmux commands by name. For example, to create a new window the hard way, you can press Ctrl+B followed by : to enter the tmux command line. Type new-window and press Enter to create a new window. This does exactly the same thing as pressing Ctrl+B then C.


1 Answers

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
like image 170
chepner Avatar answered Oct 08 '22 11:10

chepner