|
start tmux
|
tmux
|
|
default prefix
|
^b (control + b)
|
|
list bindings
|
^b ? or tmux list-keys
|
|
big clock
|
^b t
|
|
reload config
|
tmux source-file ~/.tmux.conf
|
|
show config
|
tmux show-options -g
|
alias clear='/usr/bin/clear;tmux clear-history'
alias tmux='tmux -2'
|
clear terminal and history
|
^b ^l
|
|
reload tmux config file
|
^b ^r
|
set -g history-limit 10000
set -g default-terminal "tmux-256color-italic"
set -g mouse on
setw -g xterm-keys on
# change prefix key
#set -g prefix C-a
#bind-key C-a send-prefix
#unbind-key C-b
# new-window starts in current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# custom commands
bind-key C-l send-keys "clear" \; send-keys "Enter"
bind-key C-r source-file ~/.tmux.conf \; display-message "~/.tmux.conf is reloaded"
|
list
|
tmux ls or ^b s
|
|
attach
|
tmux a
|
|
attach and detach others
|
tmux a -d
|
|
detach current client
|
^b d
|
|
detach other clients
|
^b D
|
|
split vertically
|
^b %
|
|
split horizontally
|
^b "
|
|
next
|
^b o
|
|
previous
|
^b ;
|
|
show pane number
|
^b q
|
|
swap pane location
|
^b ^o
|
|
move pane left
|
^b {
|
|
move pane right
|
^b }
|
|
navigate
|
^b arrow key
|
|
resize
|
^b ^arrow key
|
|
change layout
|
^b space
|
|
kill current
|
^b !
|
|
zoom (in/out)
|
^b z
|
|
new
|
^b c
|
|
close
|
^d or ^b x
|
|
next
|
^b n
|
|
previous
|
^b p
|
|
rename
|
^b ,
|
|
list all
|
^b w
|
|
jump to
|
^b number
|
|
start
|
^b [
|
|
exit
|
q
|
|
search up (reverse)
|
^r
|
|
search down
|
^s
|
|
search next
|
n
|
|
start selection
|
^space
|
|
copy selection and exit
|
^w
|
|
start of line
|
^a
|
|
end of line
|
^e
|
|
top
|
alt <
|
|
bottom
|
alt >
|
|
goto line
|
g
|
|
next word
|
alt f
|
|
previous word
|
alt b
|
|
list copied buffers
|
^b =
|
|
paste
|
^b ]
|
|
X11 copy
|
shift left click
|
|
X11 paste
|
shift middle click
|
# 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,
$ tic tmux-256color-italic.terminfo Test: $ echo `tput sitm`italics`tput ritm`
italics
$ echo `tput smso`standout`tput rmso`
standout
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.