Tmux Shortcuts Cheatsheet: Resizing Panes
Tmux Shortcuts Cheatsheet: Resizing Panes
startnew
tmux
newnamedsession tmuxnewsname
attach
tmuxa#(at,attach)
attachtonamed
tmuxatmyname
listsessions
tmuxls
killsession
tmuxkillsession
tmyname
Killallthetmuxsessions:
tmuxls|grep:|cutd.f1|awk
'{printsubstr($1,0,length($1)1)}'
|xargskill
Intmux,hitthe<prefix>andthen:
Sessions
newsession
listsessions
namesession
Windows(tabs)
newwindow
listwindows
findwindow
namewindow
killwindow
togglewindow
Panes(splits)
verticalsplit
horizontalsplit
swappanes
showpane#
killpane
breakpaneintowindow
(e.g.toselecttextbymouseto
copy)
restorepanefromwindow
togglebetweenlayouts
Showpane#,whenthe
numbersshowuptypethe#to
gotothatpane
Movethecurrentpaneleft
Movethecurrentpaneright
togglepanezoom
1.
:new
<CR>
s
$
c
w
f
,
&
<prefix>
+#
%
o
q
x
+
<SPACE>
<prefix>
<prefix>
<prefix>
<prefix>
ResizingPanes
Hereisthebasicsyntaxtoresizepanes:
(Bydefaultitresizesthecurrentpanedown)
<prefix>
+
:resizepane
+
default
(resizescurrentpanedown)
(none?justabove)
Resizesthecurrentpane
U
upward
Resizesthecurrentpaneleft L
Resizesthecurrentpaneright R
ResizesthecurrentpanedownD20
1
by20cells
Resizesthecurrentpane
U20
upwardby20cells
Resizesthecurrentpaneleft L20
by20cells
Resizesthecurrentpaneright R20
by20cells
Resizesthepanewiththeidof t220
2downby20cells
Resizesthepanewiththeidof tL20
2leftby20cells
SyncPanes
Youcandothisbyswitchingtothe
appropriatewindow,typingyourTmuxprefix
andthenacolontobringupaTmux
commandline,andtyping:
:setwsynchronizepanes
Youcanoptionallyaddonorofftospecify
whichstateyouwantotherwisetheoptionis
simplytoggled.Thisoptionisspecifictoone
window,soitwontchangethewayyour
othersessionsorwindowsoperate.When
youredone,toggleitoffagainbyrepeating
thecommand.
tipsource
DefaultPrefix:
<CTRL+b>
sources:
1. http://bit.ly/1DAGAaG
2. http://bit.ly/17jGOVM
3. http://bit.ly/17jGOoG
Defaultbehaviorforresizingpanesdown[<prefix>+:resizepane20]doesntseemtoworkwithoutadding
Dafterresizepane,before#oflinestoresize.