Skip to content

Instantly share code, notes, and snippets.

@glebtv
Created October 22, 2013 16:16
Show Gist options
  • Save glebtv/7103582 to your computer and use it in GitHub Desktop.
Save glebtv/7103582 to your computer and use it in GitHub Desktop.
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window 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'
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
unbind -
bind - \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom
set -g default-terminal "screen-256color"
@glebtv
Copy link
Author

glebtv commented Oct 22, 2013

run with tmux -2

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