Skip to content

Commit

Permalink
Fix Tmux scrolling on El Capitan
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Feb 13, 2016
1 parent 5b3d35e commit 8656f74
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,17 @@ bind-key C-f send-prefix

# Fix scrolling for Tmux 2.1 on OSX
# See: https://github.com/tmux/tmux/issues/145
# 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

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
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -t vi-copy C-WheelUpPane halfpage-up
bind -t vi-copy C-WheelDownPane halfpage-down
bind -t emacs-copy C-WheelUpPane halfpage-up
bind -t emacs-copy C-WheelDownPane halfpage-down

# C-f C-f switches between the last two windows
bind-key C-f last-window
Expand Down

0 comments on commit 8656f74

Please sign in to comment.