Tmux

From My Mnemonic Rhyme
Revision as of 21:32, 19 February 2020 by >Homaar
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cheat sheet

tmux ls #list sessions
tmux list-keys # short: lsk
^b d # detach session
^b c # new window
^b n # next window
^b p # previous window
^b ; # rename window
^b s # select window
^b x # kill window

join-pane and break-pane

join-pane [-dhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]  
    (alias: joinp)
    Like split-window, but instead of splitting dst-pane and creating
    a new pane, split it and move src-pane into the space.  This can
    be used to reverse break-pane.

Some binding suggestions:

# pane movement
bind-key B command-prompt -p "join pane from:"  "join-pane -s '%%'"
bind-key J command-prompt -p "send pane to:"  "join-pane -t '%%'"