Skip to content

Instantly share code, notes, and snippets.

@antondemanov
Last active May 15, 2017 10:13
Show Gist options
  • Select an option

  • Save antondemanov/b27999ce10cde4de89b71000c92a637a to your computer and use it in GitHub Desktop.

Select an option

Save antondemanov/b27999ce10cde4de89b71000c92a637a to your computer and use it in GitHub Desktop.
Small tmux cheatsheet
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
# Looks like it didn't work on Linux Mint
bind r source-file ~/.tmux.conf
# Enable mouse mode (tmux 2.1 and above)
# Didn't work on Linux Mint
# set -g mouse on
# Make zsh default shell
# set-option -g default-shell /bin/zsh
TMUX cheatsheet:
tmux-seesion:
Meta + d: detach session
tmux kill-session id
tmux ls: list of sessions
tmux rename-session -t id new_id
tmux attach -t id
Meta + z: zoom pane
Windows:
Meta + c: create
Meta + n: next
Meta + p: previous
Mouse mode:
Meta + : set mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment