Skip to content

Instantly share code, notes, and snippets.

@myyc
Last active June 28, 2016 14:09
Show Gist options
  • Save myyc/5329523c4980671caf9c1a93d50ac0b7 to your computer and use it in GitHub Desktop.
Save myyc/5329523c4980671caf9c1a93d50ac0b7 to your computer and use it in GitHub Desktop.
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
unbind C-v
bind C-v paste-buffer
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
unbind h
bind h split-window
unbind v
bind v split-window -h
bind C-s copy-mode
setw -g mode-keys emacs
set-window-option -g xterm-keys on
setw -g mouse on
bind -n WheelUpPane if-shell -Ft= '#{mouse_any_flag}' 'send-keys -M' 'if -Ft = "#{pane_in_mode}" "send-keys -M" "copy-mode -e"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment