0% found this document useful (0 votes)
65 views

Tmux Shortcuts Cheatsheet: Resizing Panes

A list of helpful shortcuts adapted from an online resource and reformatted for my optimal use. Includes links to more complete resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Tmux Shortcuts Cheatsheet: Resizing Panes

A list of helpful shortcuts adapted from an online resource and reformatted for my optimal use. Includes links to more complete resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

tmuxshortcutscheatsheet

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.

You might also like