Skip to content

Instantly share code, notes, and snippets.

@oldhobbyist
Forked from henrik/tmux_cheatsheet.markdown
Last active November 23, 2015 11:04
Show Gist options
  • Save oldhobbyist/4ca6a4aa50e908aa7f77 to your computer and use it in GitHub Desktop.
Save oldhobbyist/4ca6a4aa50e908aa7f77 to your computer and use it in GitHub Desktop.
tmux cheatsheet

tmux cheatsheet

tmux start new

tmux new -s [myname] start new with session name

tmux a # (or at, or attach) attach

tmux a -t [myname] attach to named

tmux ls list sessions

tmux kill-session -t [myname] kill session

In tmux, hit the prefix CTRL+b and then:

Sessions

:new<CR>     new session
$            name session
s            list sessions
d            exit session

Windows (tabs)

c             new window
,             name window
w             list windows
f             find window
&             kill window
.             move window - prompted for a new number
:movew<CR>    move window to the next unused number

Panes (splits)

%              horizontal split
"              vertical split

o              swap panes
q              show pane numbers
x              kill pane
<CTRL>space    toggle between layouts

Window/pane surgery

:joinp -s :2<CR>    move window 2 into a new pane in the current window
:joinp -t :1<CR>    move the current pane into a new pane in window 1

Misc

t    big clock
?    list shortcuts
:    prompt

Resources:

  • This is a forked version, please see original for resources.

TODO:

  • Layout
  • Conf copy mode to use system clipboard. See PragProg book.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment