Skip to content

Instantly share code, notes, and snippets.

@lenny
Created October 10, 2017 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenny/2cf89cb9a4ba8bdea75dccecb3929d42 to your computer and use it in GitHub Desktop.
Save lenny/2cf89cb9a4ba8bdea75dccecb3929d42 to your computer and use it in GitHub Desktop.
# switch C-b -> C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# mouse support
#setw -g mode-mouse on
set -g mouse on
# https://github.com/tmux/tmux/issues/145#issuecomment-151098708
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment