Skip to content

Instantly share code, notes, and snippets.

@sgmccli
Last active December 31, 2017 18:45
Show Gist options
  • Save sgmccli/799081dad2bcdcbae35d10d3029a695b to your computer and use it in GitHub Desktop.
Save sgmccli/799081dad2bcdcbae35d10d3029a695b to your computer and use it in GitHub Desktop.
Tmux instructions
# Install tmux
brew install tmux
# Launch tmux
tmux
# Setup tmux conf
vi ~/.tmux.conf
# Rebind prefix key from ctrl+b to ctrl+a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Easy reloading
bind R source-file ~/.tmux.conf
# Pretty colors
set -g status-bg blue
set -g status-fg white
# Create a pane (vertical split)
C-a %
# Create a pane (horizontal split)
C-a "
# Move around the panes
C-a and direction arrows
# Create a new window (Group of panes)
C-a c
# Navigate forward through windows (n for next)
C-a n
# Navigate backward through windows (p for prev)
C-a p
# Detach a window
C-a d
# Attach
tmux attach
# List sessions
tmux ls
# Multiple sync
C-a :
setw synchronize-panes on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment