Skip to content

Instantly share code, notes, and snippets.

@brianmcd
Created June 13, 2016 16:03
Show Gist options
  • Save brianmcd/01f4d1eb9ec5d6d7c9f31d34a5fcc827 to your computer and use it in GitHub Desktop.
Save brianmcd/01f4d1eb9ec5d6d7c9f31d34a5fcc827 to your computer and use it in GitHub Desktop.
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# So that Chrome can run under tmux (see: http://savanne.be/804-running-karma-and-chrome-under-tmux-on-osx/)
set-option -g default-command "reattach-to-user-namespace -l bash"
set -g history-limit 50000
# quick pane cycling
unbind ^B
bind ^B select-pane -t :.+
# resizing
bind -r J resize-pane -D
bind -r K resize-pane -U
bind -r H resize-pane -L
bind -r L resize-pane -R
setw -g mode-keys vi
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set -g default-terminal "screen-256color"
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# re-number windows when one is closed
set -g renumber-windows on
# decrease command delay (increases vim responsiveness)
set -sg escape-time 1
# increase repeat time for repeatable commands
set -g repeat-time 1000
# highlight current window
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment