Keybindings, status bar and some minor changes to make tmux more awesome for development and ops without going too far.
git clone https://github.com/AdamWhittingham/tmux-config.git ~/.tmux-config
ln -s ~/.tmux-config/tmux.conf ~/.tmux.conf
- My example script for firing up tmux as a ruby dev environment is over here
- If you want to share between user accounts on the same box, read the
setup_socket_sharing.sh
script for details - I have some helpful aliases in my .bashrc file
`
Command prefix (<prefix>
from here on)
<prefix> c
Create new window<prefix> n
Create new window<prefix> s
Split into horizontal panes<prefix> S
Split into vertical panes
<prefix> ,
switch to back window<prefix> .
switch to next window<prefix> -
previously selected window<prefix> 1-9
go to window #1-9<prefix> w
list windows and select which to switch to
<prefix> r
rename window<prefix> <
move window left<prefix> >
move window right
<prefix> h
move focus to the pane left<prefix> j
move focus to the pane down<prefix> k
move focus to the pane up<prefix> l
move focus to the pane right<prefix> q n
Show pane numbers, then jump focus to pane n
These can be repeated after a single press of the prefix to resize quickly
<prefix> H
resize to the pane left<prefix> J
resize to the pane down<prefix> K
resize to the pane up<prefix> L
resize to the pane right
<prefix> {
move this pane to the location of the previous pane<prefix> }
move this pane to the location of the next pane<prefix> Up
Temporarily maximise the current pane in a new window<prefix> Down
Minimise the maximised pane back where it came from
<prefix> x
close pane<prefix> Q
Kill the pane (kills everything the pane is running, careful!)<prefix> !
turn pane into window<prefix> y
toggle synchronizing keystrokes to all panes<prefix> m
to send this pane to another window<prefix> M
to pull a pane in from another window
<prefix> d
detach from sessiontmux attach -t <session-name>
reattach to sessiontmux ls
list sessions
<prefix> ESC
enter copy mode In copy mode you can then use vi selection bindings (w,e,t,etc)v
to visually selecty
to yank to a buffer<prefix> p
paste<prefix> P
pick what to paste when there are multiple things copied
<prefix> Ctrl+c
Copy buffer to clipboard<prefix> Ctrl+v
Paste from clipboard
<prefix> (
switch into the next tmux session<prefix> )
switch into the previous tmux session<prefix> Ctrl+Q
Kill the whole session- use with care!
<prefix><prefix>
send the prefix through tmux to the terminal or app insideShift + Left Click
highlight text for copying with the mouse<prefix> Ctrl+r
toggle recording the pane to a file in your home directory<prefix> R
reload the ~/.tmux.conf config file