Today I Learned

hashrocket A Hashrocket project

Rename Tmux Windows

When you create a window in tmux, it will be named 'zsh', or 'bash', or whatever your shell is. I think it's important that each tmux tab have an appropriate name. A tab running server should be called 'server'; a tab running sidekiq should be called 'sidekiq'.

You can rename your windows a bunch of ways. For the window you are in:

$ tmux rename-window newname

For another window in your session:

$ tmux rename-window -t otherwindow newname

Using the tmux bar:

prefix + rename-window newname

And my favorite, the tmux bar with a keyboard shortcut:

prefix + , newname
See More #workflow TILs