Skip to content

Instantly share code, notes, and snippets.

@carlosonunez
Created February 8, 2016 20:19
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 carlosonunez/217309c2ba46157f8919 to your computer and use it in GitHub Desktop.
Save carlosonunez/217309c2ba46157f8919 to your computer and use it in GitHub Desktop.
bind r source-file ~/.tmux.conf
# Enable VI mode.
set-window-option -g mode-keys vi
# Configure the status pane on the bottom
set -g status-left-length 60
set -g status-right-length 60
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]"
# Enable mouse support
set -g mouse-utf8 on
set -g mouse on
# Easy-to-remember window pane movements.
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
# Enable mouse scrollback
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
bind-key -t vi-copy WheelUpPane halfpage-up
bind-key -t vi-copy WheelDownPane halfpage-down
# Kill session shortcut
bind-key ! kill-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment