Skip to content

Instantly share code, notes, and snippets.

@agile
Created November 19, 2015 15:44
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 agile/5213356f4ea4075b621d to your computer and use it in GitHub Desktop.
Save agile/5213356f4ea4075b621d to your computer and use it in GitHub Desktop.
my tmux config - nothing very special
# unbind C-b if you prefer using screen's ^a command sequence
# set -g prefix C-a
# alt-arrow bindings to switch windows
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
# get visual notifications of activity from other windows
setw -g monitor-activity on
set -g visual-activity on
# Where am I????
set-window-option -g window-status-current-bg yellow
set-option -g mouse-select-pane on
# Toggle mouse on with ^B m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
# Zoom a panel in
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
# Zoom a panel back out
unbind -
bind - \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment