Skip to content

Instantly share code, notes, and snippets.

@cheerfulstoic
Created September 22, 2017 16:57
Show Gist options
  • Save cheerfulstoic/b4d31e5e5750769376b36a786b700c0f to your computer and use it in GitHub Desktop.
Save cheerfulstoic/b4d31e5e5750769376b36a786b700c0f to your computer and use it in GitHub Desktop.
My ~/.tmux.conf
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-key -n S-Up resize-pane -U 5
bind-key -n S-Down resize-pane -D 5
bind-key -n S-Left resize-pane -L 5
bind-key -n S-Right resize-pane -R 5
set-window-option -g xterm-keys on
set -s escape-time 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment