Skip to content

Instantly share code, notes, and snippets.

@ehynds
Created December 11, 2018 14:14
Show Gist options
  • Save ehynds/2b7dca236b8fa38acdbcaba251f83455 to your computer and use it in GitHub Desktop.
Save ehynds/2b7dca236b8fa38acdbcaba251f83455 to your computer and use it in GitHub Desktop.
tmux shortcuts

tmux shortcuts & cheatsheet

start new:

tmux
tmux new -s myname

attach:

tmux a
tmux a -t myname

list sessions:

tmux ls

kill session:

tmux kill-session -t myname

enable scroll

To enter: <Ctrl-b> [
To use: <Ctrl-u>, <Ctrl-d>
To exit: q

Windows (tabs)

c  create window
w  list windows
n  next window
p  previous window
f  find window
,  name window
&  kill window

Panes (splits)

%  vertical split
"  horizontal split

o  swap panes
q  show pane numbers
x  kill pane
+  break pane into window (e.g. to select text by mouse to copy)
-  restore pane from window
⍽  space - toggle between layouts
<prefix> q (Show pane numbers, when the numbers show up type the key to goto that pane)
<prefix> { (Move the current pane left)
<prefix> } (Move the current pane right)
<prefix> z toggle pane zoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment