tmux - terminal multiplexer Keyboard Shortcuts
by alexandreceolin via cheatography.com/24507/cs/6071/
General Bash aliases Scroll and Clipboard (emacs mode) (cont)
start tmux tmux alias clear='/usr/bin/clear;tmux next word alt f
default prefix ^b (control + b) clear-history' previous word alt b
alias tmux='tmux -2'
list bindings ^b ? or tmux list-keys list copied buffers ^b =
big clock ^b t paste ^b ]
Pane
tmux 2.1 http://tmux.github.io X11 copy shift left click
split vertically ^b %
X11 paste shift middle click
Config split horizontally ^b "
next ^b o Config file (~/.tmux.conf)
reload config tmux source-file ~/.tmux.conf
previous ^b ;
show config tmux show-options -g set -g history-limit 10000
show pane number ^b q
set -g default-terminal "tmux-
Session swap pane location ^b ^o 256color-italic"
list tmux ls or ^b s move pane left ^b { set -g mouse on
attach tmux a move pane right ^b } setw -g xterm-keys on
# change prefix key
attach and detach others tmux a -d navigate ^b arrow key
#set -g prefix C-a
detach current client ^b d resize ^b ^arrow key
#bind-key C-a send-prefix
detach other clients ^b D change layout ^b space
#unbind-key C-b
kill current ^b ! # new-window starts in current
Custom Commands
zoom (in/out) ^b z directory
clear terminal and history ^b ^l bind '"' split-window -c "#
reload tmux config file ^b ^r Scroll and Clipboard (emacs mode) {pane_current_path}"
start ^b [ bind % split-window -h -c "#
Window (tab) {pane_current_path}"
exit q
new ^b c bind c new-window -c "#
search up (reverse) ^r
{pane_current_path}"
close ^d or ^b x search down ^s
# custom commands
next ^b n search next n bind-key C-l send-keys "clear" \;
previous ^b p start selection ^space send-keys "Enter"
rename ^b , copy selection and exit ^w bind-key C-r source-file
list all ^b w start of line ^a ~/.tmux.conf \; display-message
jump to ^b number end of line ^e
"~/.tmux.conf is reloaded"
top alt < https://raw.githubusercontent.com/tmux/tmux/mas
ter/FAQ
bottom alt >
goto line g
By alexandreceolin Published 13th November, 2015. Sponsored by ApolloPad.com
Last updated 23rd September, 2016. Everyone has a novel in them. Finish Yours!
Page 1 of 2. https://apollopad.com
cheatography.com/alexandreceolin/
tmux - terminal multiplexer Keyboard Shortcuts
by alexandreceolin via cheatography.com/24507/cs/6071/
Fix terminal italics and standout
# file: tmux-256color-italic.terminfo
# A 256 color terminal with
# italics and standout
tmux-256color-italic|Terminal tmux,
sitm=\E[3m, ritm=\E[23m,
smso=\E[7m, rmso=\E[27m,
use=screen-256color,
Use: $ tic tmux-256color-italic.terminfo
Test: $ echo `tput sitm`italics`tput ritm`
italics
$ echo `tput smso`standout`tput rmso`
standout
By alexandreceolin Published 13th November, 2015. Sponsored by ApolloPad.com
Last updated 23rd September, 2016. Everyone has a novel in them. Finish Yours!
Page 2 of 2. https://apollopad.com
cheatography.com/alexandreceolin/