Skip to content

Instantly share code, notes, and snippets.

@siawyoung
Created November 10, 2015 10:50
Show Gist options
  • Save siawyoung/502605fcc589ae078ca7 to your computer and use it in GitHub Desktop.
Save siawyoung/502605fcc589ae078ca7 to your computer and use it in GitHub Desktop.
My tmux configuration, updated for 2.1. No change in behavior from my previous tmux config (as far as I can tell)
set -g prefix C-x
unbind-key C-b
bind-key C-x send-prefix
bind a next-window
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind c new-window -c "$HOME"
set -g base-index 1
bind r source-file ~/.tmux.conf
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
set -g set-titles on
set -g status-utf8 on
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left-length 90
set -g status-right-length 60
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#(hostname -s)#[fg=white]::#[fg=yellow]#(curl ifconfig.me;echo)"
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
set-option -g -q mouse on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment