Tmux is a terminal multiplexer. Tested with tmux 1.5+.
This config has support for tmux-mem-cpu.
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
You can add suport for powerline by adding these to your ~/.tmux.conf
. Be sure to grab and install powerline-fonts for your system.
See Powerline on ReadTheDocs.org for more info.
# pip install --user git+git://github.com/powerline/powerline
if-shell 'test -f ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' 'source-file ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# [sudo] pip install git+git://github.com/powerline/powerline
if-shell 'test -f /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# [sudo] pip install git+git://github.com/powerline/powerline
if-shell 'test -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf'
# using python3.3
if-shell 'test -f /usr/local/lib/python3.3/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python3.3/dist-packages/powerline/bindings/tmux/powerline.conf'
# python 3.4?
# if-shell 'test -f /usr/local/lib/python3.4/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python3.4/dist-packages/powerline/bindings/tmux/powerline.conf'
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.