I check Daniel Miessler’s Tactical tmux constantly, so I decided to make a more condensed cheatsheet specific to check locally.
This isn’t a tutorial so much as a list of reference commands and related configurations for good measure.
I’m by no means a power-user, so I’ll be updating this as I accumulate
tmux-related knowledge.
Bash interface
tmux new -s sessionstart a newtmuxsession with namesessiontmux deatchdetach from current sessiontmux lslist current sessionstmux a -t sessionattach to the session with namesessiontmux kill-session -t sessionkill the session with namesessionCommands
All commands are prefixed by
ctrl-b.ddetach from the current sessionccreate a new window%split window horizontally"split window verticallynchange to next window-
pchange to previous window :resize-pane -L 5Expand the size of the current pane by 5 columns to the left:resize-pane -R 5Expand the size of the current pane by 5 columns to the right:respawn-pane -kkill command running in current pane and respawn pane
.tmux.conf
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
.vimrc
Add the following lines to your .vimrc to allow for tmux to share the color
scheme as your terminal:
if $TERM == 'screen'
set t_Co=256
endif
