Skip to content

Instantly share code, notes, and snippets.

@pklingem
Created January 26, 2016 14:54
Show Gist options
  • Save pklingem/d7770c249e8096a18f09 to your computer and use it in GitHub Desktop.
Save pklingem/d7770c249e8096a18f09 to your computer and use it in GitHub Desktop.
tmux mouse integration
# mouse integration for OS X, not sure about linux
# see: https://github.com/tmux/tmux/issues/145#issuecomment-151123624
set -g mouse-utf8 on
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment