Last Updated: February 25, 2016
· arcv

Better navigation in tmux

Default tmux configuration uses C-b key to interact with panes, windows, which is a bit inefficient. But it is just a default. There is a configuration file for changing them.

open ~.tmux.conf and add below content

bind -n S-down new-window
bind -n S-left prev
bind -n S-right next

bind -n C-left select-pane -L
bind -n C-down select-pane -D
bind -n C-up select-pane -U
bind -n C-right select-pane -R

Shift+down key to create a new window
Shift+left key to select previous window and so on.

Since I use panes and windows in Tmux more, these keybindings saved me a lot of key-stroke.

You can find plenty of good resources, configuration set on Github and Gist.Github.