Created
February 8, 2016 20:19
-
-
Save carlosonunez/217309c2ba46157f8919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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