Tmux is a terminal multiplexer. Tested with tmux 1.5+.
Prefix mapped to Ctrl-B but can has Ctrl-A commented out for screen
users if they wish to use it.
Download:
git clone https://github.com/redbrick/redbrick-tmux-config.git ~/.tmux
Copy tmux config to home:
bash ~/.tmux/setup.sh
To start a session:
tmux
To reattach a previous session:
tmux attach
To reload config file
<Control + b>:
(which could Ctrl-B or Ctrl-A if you overidden it) then source-file ~/.tmux.conf
Our prefix/leader key is Control + b
now (just like the screen
multiplexer). This sequence must be typed before any tmux shortcut.
Control + b
before any commandControl + b
then?
to bring up list of keyboard shortcutsControl + b
then"
to split windowControl + b
then<Space>
to change pane arrangementControl + b
theno
to rotate panesControl + b
thenh
,j
,k
,l
to move left, down, up, right. Respectively. (vim hjkl)Control + b
then;
to go to last panel
Beyond your first window:
Control + b
thenc
to create a new windowControl + b
thenn
to next windowControl + b
thenp
to previous windowControl + b
then[0-9]
move to window numberControl + b
then&
to kill window
Custom:
Control + b
thenm
to switch tomain-horizontal
layout with the main window at 60% height.