Skip to content

Instantly share code, notes, and snippets.

@bramus
Last active January 3, 2017 11:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bramus/fbc9cbbb8e7ea9da6fe6bc3eb4aa01e5 to your computer and use it in GitHub Desktop.
# ssh keys
# `brew install reattach-to-user-namespace
set-option -g default-command "reattach-to-user-namespace -l bash"
# mouse scrolling
set-option -g mouse on
# make scrolling with wheels work
# @ref http://stackoverflow.com/a/33461197/2076595
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