Skip to content

Instantly share code, notes, and snippets.

@joshlemer
Created December 5, 2016 18:52
Show Gist options
  • Save joshlemer/6fa9aa218571a6b78164e63048501c8b to your computer and use it in GitHub Desktop.
Save joshlemer/6fa9aa218571a6b78164e63048501c8b to your computer and use it in GitHub Desktop.
# Set a Ctrl-b shortcut for reloading your tmux config
bind r source-file ~/.tmux.conf
# For no time after pressing ESC, should we consider ALT to be pressed down
# (Why was that default in the first place???)
set -g escape-time 0
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Allow switching panes by clicking on them, allow resizing panes with mouse
set -g mouse on
# Hotkeys for resizing panes
bind j resize-pane -D 10
bind k resize-pane -U 10
bind l resize-pane -R 10
bind h resize-pane -L 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment