📗 Example tmux configuration - screen + vim key-bindings, system stat, cpu load bar.
See the codetmux is a terminal multiplexer.
screen users.New to tmux? The Tao of tmux is now available on Leanpub and Amazon Kindle. Read and browse the book for on the web.
Want more tmux? Check out the libtmux python library for controlling tmux, and load your code projects via YAML/JSON with tmuxp.
Have a tmux configuration you'd like to share? Whether a fork of this project, another's, or your own, submit it to awesome-tmux-configs.
Download:
git clone --recursive https://github.com/tony/tmux-config.git ~/.tmux
Copy tmux config to home:
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
Go to config dir:
cd ~/.tmux
Works on Linux and OS X.
Prep ourself to download submodule (if you forgot --recursive when cloning):
git submodule init
Download submodule:
git submodule update
Change dir to tmux-mem-cpu-load:
cd ~/.tmux/vendor/tmux-mem-cpu-load
Make _build directory and cd into it:
mkdir _build; cd _build
General make file:
cmake ..
Compile binary:
make
Install our binary to /usr/local/bin/tmux-mem-cpu-load:
sudo make install
(No need to do sudo if on OS X / macOS)
Go home:
cd ~
Launch tmux:
tmux
And press Control + a then d to go back to the terminal.
Update config:
tmux source-file ~/.tmux.conf
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.
To start a session:
tmux
To reattach a previous session:
tmux attach
To reload config file
<Control + a>: 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 shortcuts (with descriptions)Control + a then " to split window horizontallyControl + a then v to split window verticallyControl + a then <Space> to open quick-action menuControl + a then o to rotate panesControl + a then h, j, k, l to move left, down, up, right (vim hjkl)Control + a then ; to go to last panelBeyond your first window:
Control + a then c to create a new windowControl + a then n to next windowControl + a then p to previous windowControl + a then [0-9] move to window numberControl + a then & to kill windowCustom:
Control + a then m to switch to main-horizontal layout with the main pane at 66% height.Control + a then M to switch to main-vertical layout with the main pane at 50% width.Control + a then t to open a popup shell (80% of screen, 3.2+).Control + a then g to open a popup with git log --oneline --graph (3.2+).541 followers · starred Dec 2015
2,019 followers · starred Oct 2016
966 followers · starred Apr 2020
680 followers · starred Nov 2016
📗 Example tmux configuration - screen + vim key-bindings, system stat, cpu load bar.
See the codetmux is a terminal multiplexer.
screen users.New to tmux? The Tao of tmux is now available on Leanpub and Amazon Kindle. Read and browse the book for on the web.
Want more tmux? Check out the libtmux python library for controlling tmux, and load your code projects via YAML/JSON with tmuxp.
Have a tmux configuration you'd like to share? Whether a fork of this project, another's, or your own, submit it to awesome-tmux-configs.
Download:
git clone --recursive https://github.com/tony/tmux-config.git ~/.tmux
Copy tmux config to home:
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
Go to config dir:
cd ~/.tmux
Works on Linux and OS X.
Prep ourself to download submodule (if you forgot --recursive when cloning):
git submodule init
Download submodule:
git submodule update
Change dir to tmux-mem-cpu-load:
cd ~/.tmux/vendor/tmux-mem-cpu-load
Make _build directory and cd into it:
mkdir _build; cd _build
General make file:
cmake ..
Compile binary:
make
Install our binary to /usr/local/bin/tmux-mem-cpu-load:
sudo make install
(No need to do sudo if on OS X / macOS)
Go home:
cd ~
Launch tmux:
tmux
And press Control + a then d to go back to the terminal.
Update config:
tmux source-file ~/.tmux.conf
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.
To start a session:
tmux
To reattach a previous session:
tmux attach
To reload config file
<Control + a>: 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 shortcuts (with descriptions)Control + a then " to split window horizontallyControl + a then v to split window verticallyControl + a then <Space> to open quick-action menuControl + a then o to rotate panesControl + a then h, j, k, l to move left, down, up, right (vim hjkl)Control + a then ; to go to last panelBeyond your first window:
Control + a then c to create a new windowControl + a then n to next windowControl + a then p to previous windowControl + a then [0-9] move to window numberControl + a then & to kill windowCustom:
Control + a then m to switch to main-horizontal layout with the main pane at 66% height.Control + a then M to switch to main-vertical layout with the main pane at 50% width.Control + a then t to open a popup shell (80% of screen, 3.2+).Control + a then g to open a popup with git log --oneline --graph (3.2+).541 followers · starred Dec 2015
2,019 followers · starred Oct 2016
966 followers · starred Apr 2020
680 followers · starred Nov 2016