Last active
February 19, 2019 04:43
-
-
Save chadmayfield/e762ebccd716807ce74321fd5e7ba240 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
tmux start tmux server | |
tmux new-session -s basic start a new session and name it basic | |
tmux new -s basic same command as above but abbreviated | |
CTRL+b command key combo (PREFIX) | |
PREFIX + d detach window | |
tmux list-sessions list running sessions | |
tmux ls list running sessions abbreviated | |
tmux attach attach to running session | |
tmux new -s second -d create tmux instance in background | |
tmux attach -t second attach to session named "second" | |
tmux kill-session -t basic kill session name "basic" | |
tmux new -s windows -n shell create new session called windows, with tab named shell | |
PREFIX + c create a new window in current session (takes focus) | |
PREFIX + , rename current window | |
PREFIX + n move to next window | |
PREFIX + p move to previous window | |
PREFIX + "number" (e.g. 1) move to window specified number (zero-based array) | |
PREFIX + f find a window by name (if we have more than 9) | |
PREFIX + w display the window menu visually | |
PREFIX + & kill the current window (will prompt) | |
tmuxh new -s panes create a new session named "panes" | |
PREFIX + % split the current window into two panes VERTICALLY | |
PREFIX + " split the current window into two panes HORIZONTALLY | |
PREFIX + "number" cycle through the panes (0..9) | |
PREFIX + {up,down,left,right} move through the panes | |
PREFIX + SPACEBAR cycle through pane layouts in the following order; | |
even-{horizontal,vertical}, main-{horizontal,vertical}, tiled | |
PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation | |
PREFIX + : enter Command Mode within running session (status bar color change) | |
new-window -n console in command mode open a new window called console | |
new-window -n processes "top" in command mode open a new window called processes and run top (exiting top will close pane) | |
.tmux.conf file example | |
----------------------- | |
$ touch ~/.tmux.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment