Skip to content

Instantly share code, notes, and snippets.

@jimmybot
Last active September 22, 2015 18:17
Show Gist options
  • Save jimmybot/867b472f17d4bb847fac to your computer and use it in GitHub Desktop.
Save jimmybot/867b472f17d4bb847fac to your computer and use it in GitHub Desktop.
# ` is an interesting key for a prefix
set-option -g prefix `
set -g window-status-bg yellow
# we need literal ` sometimes, allow switching
# we can also send the prefix char with `-a
bind-key C-b set-option -g prefix C-b
bind-key C-v set-option -g prefix `
bind-key ` last-window
bind-key a send-prefix
# 0 is too far from `
set -g base-index 1
set-window-option -g mode-mouse on
set-option -g default-terminal "xterm-256color"
set-option -g xterm-keys on
set-option -g mouse-select-pane on
# mouse can be used to select windows (by clicking in the status bar)
set-option -g mouse-select-window on
set-option -sg escape-time 1
# mouse can be used to resize panes (by dragging dividers)
set-option -g mouse-resize-pane on
# not really sure what this does, but with it, the scrollwheel works inside Vim
#set-option -g mouse-utf8 on
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
# if you're crazy
#set-option -g visual-bell on
setw -g mode-keys vi
setw -g mode-mouse on
setw -g monitor-activity on
bind p previous-window
bind n next-window
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
set-option -g status-utf8 on
set-option -g utf8 on
setw -g utf8 on
set -g status-utf8 on
set-option -g status-justify centre
#set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 40
set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g message-fg green
set-option -g message-bg black
set -g status-left '#[fg=white]#[default]'
set -g status-right '#[fg=white][#S] local#[default]'
set -g window-status-separator ''
set -g window-status-current-format ' #I:#W '
set -g window-status-format ' #I:#W '
set -g window-status-fg white
set -g window-status-bg black
set -g window-status-current-fg black
set -g window-status-current-bg white
set -g window-status-bell-fg red
set -g window-status-bell-bg black
set -g window-status-activity-fg yellow
set -g window-status-activity-bg black
set -g history-limit 8192
bind r source-file ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment