Skip to content

Instantly share code, notes, and snippets.

@jdbohrman
Forked from surajnarwade/tmuxcheatsheet.md
Created March 9, 2019 11:50
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 jdbohrman/84a3236f205151f5ce3e3c8fad9e1323 to your computer and use it in GitHub Desktop.
Save jdbohrman/84a3236f205151f5ce3e3c8fad9e1323 to your computer and use it in GitHub Desktop.

type tmux in terminal

Windows:

  • Create new window: Ctrl+b c
  • Move to next window: Ctrl+b n
  • Move to previos window: Ctrl+b p
  • List all wondows: Ctrl+b w

Panes/Split:

  • To split horizontally: Ctrl+b " (shift ")

  • To split vertically: Ctrl+b % (shift 5)

  • To move to next pane: Ctrl+b o

  • Run one command in all panes: Ctrl+b and type :setw synchronize-panes

  • Scrolling, Ctrl+b Page Up and Ctrl+b Page Down

For different prefix, internet recommends different conf file,

tmux -f /path/to/tmux.conf

file consists of,

# use of ` instead of Ctrl+b
set-option -g prefix `
bind-key ` send-prefix
unbind-key C-b
  • mouse on: set -g mouse on
  • copy paste is shift+middle button of mouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment