Skip to content

Instantly share code, notes, and snippets.

@franckweb
Last active March 8, 2024 17:57
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 franckweb/ef4e2e6a8d72380b045e544c2955d1e5 to your computer and use it in GitHub Desktop.
Save franckweb/ef4e2e6a8d72380b045e544c2955d1e5 to your computer and use it in GitHub Desktop.
Tmux shortcuts

install (ubuntu)

apt-get install tmux

add following to ~/.tmux.conf (create file)

set-option -g default-shell /bin/zsh
set -g mouse on
bind e set-window-option synchronize-panes

then run command

tmux source-file ~/.tmux.conf

options

https://github.com/tmux/tmux/wiki/Getting-Started#list-of-useful-options

list sessions

tmux ls

attach (open) existing session

tmux attach-session -t <enter_session_id>

synchronize panes

Ctrl + b + e defined shortcut or

Ctrl + b + : and write :setw synchronize-panes

shortcuts

sessions

Ctrl + b + $ rename current session

Ctrl + b + s list sessions (use "arrows + " to choose)

slipt panes

Ctrl + % split pane horizontally

Ctrl + " split pane vertically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment