-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtmux.txt
79 lines (68 loc) · 1.74 KB
/
tmux.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# install
DIR="$HOME/opt"
./configure CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib" --prefix=/home/ca426/opt/stow/tmux-2.0
# x11 ssh tunnel
Can't open display X
export DISPLAY='echo $DISPLAY right after login'
# Commands
tmux kill-session -t session_name // kill session
# Misc
Copy on double-click: opt + double click
# key bindings
O // close other
r // source conf
## default
? // show keybindings
s // switch between sessions
(,) // switch between sessions
t // show clock
j, k // previous, next window
p // previous window
& // kill window
. // change index of window
D // detach clients -> zoom, dots
# Windows
j, k // previous, next window
p // previous window
& // kill window
. // change index of window
swap-window -t 0 // rearrange windows
move-window -t 1
kill-window -a // close all other windows
, // rename window
< // rename session (custom)
. // move window
# Panes (within a window)
E // equalize the size of panes
P, ; // last pane
space // next pane layout
alt+[1234] // select pane layout
{} // rotate panes; { counter clock
c-o // rotate all panes
q // show pane numbers
:swapp = swap-pane
:swap-pane -t x -d // swap pane and do not change focus
:swap-pane -t .p // swap current pane with p
:swap-pane -t w.p // swap current pane with p in window w
kill-panse -a // close all other panes
c-o // swap with other clock-wise
layouts: alt-i
alt-1: | | |
alt-2: - - -
alt-3: T
alt-4: |-
alt-5: _|
space // cycle through layouts
! // break pane
join-pane -t 1 // join pane
x // kill pane
z // toggle pane zoom
arrows // resize
# Key binding
man page: KEY BINDINGS
bind -r key command // must be repeated
list-keys // show key bindings
# Tmux Plugin Manager
I // install new plugins
U // update plugins
alt-u // remove unused plugins