Tmux: Difference between revisions
Jump to navigation
Jump to search
>Homaar No edit summary |
(No difference)
|
Latest revision as of 21:32, 19 February 2020
- https://tmuxcheatsheet.com/
- http://man.openbsd.org/OpenBSD-current/man1/tmux.1
- https://gist.github.com/MohamedAlaa/2961058
- https://robots.thoughtbot.com/a-tmux-crash-cours
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 '%%'"