Last active
June 14, 2017 09:51
-
-
Save kofrasa/5a46cb6864d40001ba58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Command Structure | |
Ctrl-b <command> | |
## CLI | |
tmux list-sessions | |
tmux new -s <session-name> | |
tmux attach -t <session-name> | |
tmux kill-session -t <session-name> | |
## Sessions | |
s - List sessions | |
d - Detach current client | |
$ - Rename current session | |
## Windows | |
c - Create new window | |
l - Move to previously selected window | |
n - Switch to the next window | |
p - Switch to the previous window | |
w - List all windows / window numbers | |
, - Rename the current window | |
[ - Scroll window | |
x - Kill the current pane | |
& - Kill the current window | |
% - Split horizontally | |
" - Split vertically | |
? - List all keybindings (Help) | |
<NUM> - Move to specified window number between 0-9 | |
## Panes | |
q - Show pane numbers (type the number to goto that pane) | |
o - Switch to the next pane | |
{ - Move the current pane left | |
} - Move the current pane right | |
! - Break the pane into separate window | |
x - Kill the current pane | |
z - Toggle fullscreen | |
Ctrl-d - Exit current pane (NO PREFIX REQUIRED) | |
Ctrl-<ARROW> - resize current pane in direction of ARROW | |
:split-window - Split window horizontally | |
:break-pane - Make a pane its own window | |
:resize-pane <DIR> <NUM> - Resize current pane to <DIR> by <NUM> | |
<DIR> := -L|-R|-U|-D for left,right,up, and down respectively | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment