options for ~/.tmux.conf
# enable mouse
set-option -g mouse on
# lines of history to preserve
set-option -g history-limit 20000
# copy buffer on selection to system clipboard
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
Ctrl + b
base keyCtrl + b :
start typing commandCtrl + b %
split on 2 panes horizontally (left and right)Ctrl + b "
split on 2 panes vertically (top and bottom)Ctrl + b c
create a new windowCtrl + b d
detach from tmuxCtrl + b w
show windows and panesCtrl + b ?
show binded keys
List active sessions
tmux list-sessions
tmux ls
Attach to a session with name 0
tmux attach-session -t 0
tmux attach -t 0
Try to attach to a session named main
or create it if it doesn't exist
tmux new-session -A -s main
tmux new -As main