PREFIX ? - list keys
PREFIX d - leave
# Come Back
$ tmux a
PREFIX c - create window
PREFIX , - rename window
PREFIX n - next window
PREFIX p - previous window
PREFIX {num} - go to {num} window
PREFIX & - exit window
PREFIX % - split pane in vertically
PREFIX “ - split pane in horizontally
PREFIX o - switch between panes
PREFIX {arrow} - move around the panes
PREFIX q - show pane number and its size
PREFIX x - kill pane
PREFIX z - toggle pane to be fullscreen
PREFIX {, } - swap panes
PREFIX ! - turn pane to window
Copying between tmux buffers and the system clipboard
Share buffer with system clipboard
tmux Copy & Paste on OS X: A Better Future
Copy Mode - Linux TMUX Video Tutorial
# .tmux.conf
setw -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
Copy to Buffer
PREFIX [
- scroll buffer use arrow key to move around and enter to quitPaste from buffer PREFIX ]
#Window: python dev (Prefix - Meta(Alt) + d)
# -v = split horizontal
bind-key M-d split-window -v -p 30 -t 0 \; \
send-keys './watchdog_python.py' 'Enter' \; \
select-pane -t 0
$ gem install tmuxinator
export EDITOR=vim
# OSX via Homebrew
$ brew install wemux
brew update
brew install reattach-to-user-namespace
echo "set -g default-command \"reattach-to-user-namespace -l ${SHELL}\"" >> ~/.tmux.conf
Prefix + space