tmux_usage

The formatting here is simple enough to understand (I would hope). ^ means ctrl+, so ^x is ctrl+x. M- means meta (generally left-alt or escape)+, so M-x is left-alt+x

I use Control + a instead of Control + b to be my prefix key in tmux.
.tmux.conf:

unbind C-b                                                                                                              
set -g prefix C-a
unbind %
bind | split-window -h
bind - split-window -v
set -g default-terminal "screen-256color"

# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# resize panes like vim                                                                                                                                                                                        
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1

http://superuser.com/questions/399296/256-color-support-for-vim-background-in-tmux

Action tmux screen
start a new session tmux OR tmux new OR tmux new-session screen
re-attach a detached session tmux attach OR tmux attach-session screen -r
re-attach an attached session (detaching it from elsewhere) tmux attach -d OR tmux attach-session -d screen -dr
re-attach an attached session (keeping it attached elsewhere) tmux attach OR tmux attach-session screen -x
detach from currently attached session ^b d OR ^b :detach ^a ^d OR ^a :detach
rename-window to newname ^b , <newname> OR ^b :rename-window <newname> ^a A <newname>
list windows ^b w ^a w
list windows in chooseable menu ^a "
go to window # ^b # ^a #
go to last-active window ^b l ^a l
go to next window ^b n ^a n
go to previous window ^b p ^a p
see keybindings ^b ? ^a ?
list sessions ^b s OR tmux ls OR tmux list-sessions screen -ls
toggle visual bell ^a ^g
create another shell ^b c ^a c
exit current shell ^d ^d
split pane horizontally ^b "
split pane vertically ^b %
switch to another pane ^b o
kill the current pane ^b x OR (logout/^D)
close other panes except the current one ^b !
swap location of panes ^b ^o
show time ^b t
show numeric values of panes ^b q
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License