Sammy tmux config
Download:
brew update
brew install tmux
git clone https://github.com/SammyLin/tmux-config.git ~/.tmux
# Copy tmux plugin Manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Copy tmux config to home:
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
tmux
tmux source ~/.tmux.conf
Then Control + a
then I
Install Plugin
- tmux-plugins/tpm
- tmux-plugins/tmux-sensible
- tmux-plugins/tmux-prefix-highlight
- tmux-plugins/tmux-resurrect
- tmux-plugins/tmux-open
- tmux-plugins/tmux-yank
- tmux-plugins/tmux-battery
- erikw/tmux-powerline
You can install any Plugin in ~/.tmux.conf
Example:
set -g @plugin 'erikw/tmux-powerline'
Then Control + a
then I
Launch tmux:
tmux
And press Control + a
then d
to go back to the terminal.
Update config:
tmux source-file ~/.tmux.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 + a
now (just like the screen
multiplexer). This sequence must be typed before any tmux shortcut.
Control + a
before any commandControl + a
then?
to bring up list of keyboard shortcutsControl + a
then"
to split windowControl + a
then<Space>
to change pane arrangementControl + a
theno
to rotate panesControl + a
thenh
,j
,k
,l
to move left, down, up, right. Respectively. (vim hjkl)Control + a
then;
to go to last panel
Beyond your first window:
Control + a
thenc
to create a new windowControl + a
thenn
to next windowControl + a
thenp
to previous windowControl + a
then[0-9]
move to window numberControl + a
then&
to kill window
Custom:
Control + a
thenm
to switch tomain-horizontal
layout with the main window at 60% height.
- Github: http://www.github.com/tony
- Website: http://www.git-pull.com
- LICENSE: MIT
- Author: Tony Narlock (tony@git-pull.com)