Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (89 sloc) 4.16 KB
# vim:ft=tmux
##############################################################################
# General Options
##############################################################################
set-option -g default-terminal screen-256color
set-option -g bell-action any
set-option -g history-limit 10000
set-option -g set-titles on
set-option -g base-index 1
set-option -g display-time 1000
set-option -g prefix C-a
set-option -g detach-on-destroy off
set-option -g renumber-windows on # v1.7
set-option -g escape-time 1
set-window-option -g pane-base-index 1
##############################################################################
# Key Bindings
##############################################################################
unbind-key C-b
bind-key 'C-a' send-prefix
# it would be even better if this determined if a left pane existed when going left
bind-key 'h' if-shell '[[ $(tmux list-panes | wc -l) -eq 1 ]]' 'send-keys C-w h' 'select-pane -L'
bind-key 'j' if-shell '[[ $(tmux list-panes | wc -l) -eq 1 ]]' 'send-keys C-w j' 'select-pane -D'
bind-key 'k' if-shell '[[ $(tmux list-panes | wc -l) -eq 1 ]]' 'send-keys C-w k' 'select-pane -U'
bind-key 'l' if-shell '[[ $(tmux list-panes | wc -l) -eq 1 ]]' 'send-keys C-w l' 'select-pane -R'
bind-key '0' choose-window
# move windows around
bind-key 'N' swap-window -t:+1
bind-key 'P' swap-window -t:-1
# to keep my clumsy fingers from screwing me up
bind-key 'C-p' previous-window
bind-key 'C-n' next-window
# toggle monitor activity setting for current window
bind-key 'm' set-window-option monitor-activity
unbind-key 't'
# "touch" each window (clearing activity state, for SIGWINCH or something)
bind-key 't' run-shell 'for i in $(seq 1 $(tmux list-windows | wc -l)); do tmux next-window; done'
unbind-key '-'
bind-key '-' switch-client -l
# prompt for a window to link here
bind-key 'L' choose-tree 'link-window -s "%%"'
bind-key 'M' choose-tree 'move-window -s "%%"'
# unlink this window
bind-key 'u' unlink-window
bind-key -T copy-mode-vi '$' send-keys -X end-of-line \; send-keys -X cursor-left
unbind-key C-o
##############################################################################
# Visual Theme
##############################################################################
set-option -g message-attr bold # XXX ???
set-option -g message-bg white
set-option -g message-fg blue
set-option -g message-command-attr none # XXX ???
set-option -g message-command-bg white
set-option -g message-command-fg blue
set-option -g pane-active-border-bg cyan # XXX ???
set-option -g pane-active-border-fg white
set-option -g pane-border-bg blue
set-option -g pane-border-fg white
set-option -g status-attr none
set-option -g status-bg blue
set-option -g status-fg white
set-option -g status-left-attr none
set-option -g status-left-bg blue
set-option -g status-left-fg white
set-option -g status-left-length 20
set-option -g status-right ""
set-window-option -g mode-attr none
set-window-option -g mode-bg blue
set-window-option -g mode-fg white
set-window-option -g window-status-attr none
set-window-option -g window-status-bg blue
set-window-option -g window-status-fg white
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-bg cyan
set-window-option -g window-status-current-fg white
set-window-option -g window-status-activity-attr bold
set-window-option -g window-status-activity-bg red
set-window-option -g window-status-activity-fg colour7
set-window-option -g window-status-bell-attr bold
set-window-option -g window-status-bell-bg red
set-window-option -g window-status-bell-fg colour7
set-window-option -g window-status-format "#I:#W#{?window_zoomed_flag, (zoomed),}"
set-window-option -g window-status-current-format "#I:#W#{?window_zoomed_flag, (zoomed),}"
##############################################################################
# Source Local Changes
##############################################################################
if-shell "[[ -e ~/.tmux.local.conf ]]" \
"source-file ~/.tmux.local.conf"