Skip to content

Instantly share code, notes, and snippets.

@tanduong
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanduong/22e3806aef1806f2b474 to your computer and use it in GitHub Desktop.
Save tanduong/22e3806aef1806f2b474 to your computer and use it in GitHub Desktop.
Shortcuts
Tmux
=================
Create new session
tmux new -s <session name>
Suspend session:
Ctrl + b + z
Attach session:
tmux attact -t <session name>
List keys:
Ctrl + b + ?
Split pane:
Ctrl + b + "
Ctrl + b + %
Switch pane:
Ctrl + b + up/left/right/down
Resize pane:
Ctrl + b + Ctrl + up/left/right/down
Move the current pane into a new separate tab:
Ctrl + b + !
Kill pane:
Ctrl + b + x
Rotate pane:
Ctrl + b + o
Create new tab:
Ctrl + b + c
Switch tab:
Ctrl + b + l
Ctrl + b + n
Set vi motion key in copy mode:
Ctrl + b + :setw -g mode-keys vi
Copy:
Start select:
Space
End Select & Copy & Back to normal mode:
Endter
Enter copy mode:
Ctrl + b + [
Paste:
Ctrl + b + ]
Ubuntu
=======================
Super = Window
Show Desktop:
Ctrl + Super + D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment