Skip to content

Instantly share code, notes, and snippets.

@joshbaptiste
Created May 22, 2017 16:45
Show Gist options
  • Save joshbaptiste/e2641ee53b47b6ef00b3084c36abf175 to your computer and use it in GitHub Desktop.
Save joshbaptiste/e2641ee53b47b6ef00b3084c36abf175 to your computer and use it in GitHub Desktop.
Tmux shorcuts
# tmux cheatsheet
start new with session name:
tmux new -s myname
attach:
tmux a # (or at, or attach)
attach to named:
tmux a -t myname
list sessions:
tmux ls
kill session:
tmux kill-session -t myname
In tmux, hit the prefix `ctrl+b` and then:
## Sessions
:new<CR> new session
s list sessions
$ name session
## Windows
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
% horizontal split
" vertical split
z break pane out/in
o swap panes
q show pane numbers
x kill pane
⍽ 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
* [Move window to pane](http://unix.stackexchange.com/questions/14300/tmux-move-window-to-pane)
* [How to reorder windows](http://superuser.com/questions/343572/tmux-how-do-i-reorder-my-windows)
## Misc
d detach
t big clock
? list shortcuts
: prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment