Skip to content

Instantly share code, notes, and snippets.

@dgp
Created January 22, 2013 10:42
Show Gist options
  • Save dgp/4593727 to your computer and use it in GitHub Desktop.
Save dgp/4593727 to your computer and use it in GitHub Desktop.
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
unbind-key % # Remove default binding
bind-key | split-window -h
bind-key - split-window -v
bind-key C-a last-window
bind-key r source-file ~/.tmux.conf
bind-key S command-prompt -p ssh: "new-window -n %1 'ssh %1'"
bind-key Left select-window -t -1
bind-key Right select-window -t +1
bind-key M-Left swap-window -t -1
bind-key M-Right swap-window -t +1
# Options
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set-option -g base-index 1
set-option -g bell-action any
set-option -g visual-bell off
set-window-option -g xterm-keys
set-window-option -g mode-mouse on
set-window-option -g mouse-select-pane on
set-window-option -g mouse-resize-pane on
set-window-option -g mouse-select-window on
set-option -g default-shell /bin/zsh
set-option -g default-terminal 'screen-256color'
# COLORS
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-bg default
set-option -g status-left-fg green
set-option -g status-left '#H'
set-option -g status-right-bg default
set-option -g status-right-fg green
# Highlight active window
set-window-option -g window-status-current-bg red
# Monitor and highlight window with activity
set-window-option -g monitor-activity on
set-option -g visual-activity on
set-window-option -g mode-keys vi
set -gs escape-time 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment