Skip to content

Instantly share code, notes, and snippets.

@rogerallen
Created June 4, 2026 22:43
Show Gist options
  • Select an option

  • Save rogerallen/2894f6cc09b18e4d4638025d6dfc1e1e to your computer and use it in GitHub Desktop.

Select an option

Save rogerallen/2894f6cc09b18e4d4638025d6dfc1e1e to your computer and use it in GitHub Desktop.
Notes for tmux
From the shell:
Create a session with tmux
Create a named session tmux new -s name_of_session
List sessions with tmux ls
Attach to a session with tmux a
Attach to a named session tmux a -t name_of_session
Attach and kick others off tmux a -dt name_of_session
To Paste: Press Ctrl + Shift + V
Within tmux ctrl-b is the prefix command.
ctrl-b m = toggle mouse mode on/off (copy mode on)
ctrl-b d = disconnect
ctrl+b " or _ = split a pane horizontally
ctrl+b % or - = split pane vertically
ctrl+b o = switch to "other" pane
ctrl+b c = create new window
ctrl+b num = switch to window num
ctrl+b Enter = enter copy-mode
ctrl+b [ = copy mode. Use arrow keys, PgUp/Dn or mouse wheel to scroll. q to exit.
For more see https://hackernoon.com/a-gentle-introduction-to-tmux-8d784c404340
Use Oh My Tmux (note you need to install it in home dir)
https://github.com/gpakosz/.tmux
EDIT .tmux.conf.local ONLY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment