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 session
start a newtmux
session with namesession
tmux deatch
detach from current sessiontmux ls
list current sessionstmux a -t session
attach to the session with namesession
tmux kill-session -t session
kill the session with namesession
Commands
All commands are prefixed by
ctrl-b
.d
detach from the current sessionc
create a new window%
split window horizontally"
split window verticallyn
change to next window-
p
change to previous window :resize-pane -L 5
Expand the size of the current pane by 5 columns to the left:resize-pane -R 5
Expand the size of the current pane by 5 columns to the right:respawn-pane -k
kill 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