2012-09-22 11:16:36 -07:00
|
|
|
# improve colors
|
2013-02-23 11:44:27 -08:00
|
|
|
set -g default-terminal 'screen-256color'
|
2011-09-06 16:24:12 -04:00
|
|
|
|
2011-08-11 12:16:32 -04:00
|
|
|
# act like vim
|
|
|
|
setw -g mode-keys vi
|
|
|
|
bind h select-pane -L
|
|
|
|
bind j select-pane -D
|
|
|
|
bind k select-pane -U
|
|
|
|
bind l select-pane -R
|
|
|
|
bind-key -r C-h select-window -t :-
|
|
|
|
bind-key -r C-l select-window -t :+
|
|
|
|
|
2015-05-18 22:08:56 -04:00
|
|
|
set -g prefix2 C-s
|
2012-11-07 17:08:57 -08:00
|
|
|
|
2013-02-23 11:44:27 -08:00
|
|
|
# start window numbers at 1 to match keyboard order with tmux window order
|
|
|
|
set -g base-index 1
|
2014-02-21 21:26:06 -06:00
|
|
|
set-window-option -g pane-base-index 1
|
2013-02-23 11:44:27 -08:00
|
|
|
|
2013-02-23 19:02:55 -08:00
|
|
|
# renumber windows sequentially after closing any of them
|
|
|
|
set -g renumber-windows on
|
|
|
|
|
2012-11-07 17:08:57 -08:00
|
|
|
# soften status bar color from harsh green to light gray
|
|
|
|
set -g status-bg '#666666'
|
|
|
|
set -g status-fg '#aaaaaa'
|
|
|
|
|
|
|
|
# remove administrative debris (session name, hostname, time) in status bar
|
|
|
|
set -g status-left ''
|
|
|
|
set -g status-right ''
|
2013-04-06 11:33:48 -07:00
|
|
|
|
|
|
|
# increase scrollback lines
|
|
|
|
set -g history-limit 10000
|
2013-04-17 13:44:55 +02:00
|
|
|
|
2015-05-18 22:08:56 -04:00
|
|
|
# prefix -> back-one-character
|
|
|
|
bind-key C-b send-prefix
|
|
|
|
# prefix-2 -> forward-incremental-history-search
|
|
|
|
bind-key C-s send-prefix -2
|
2013-07-22 16:42:38 -06:00
|
|
|
|
2017-04-28 12:13:05 -04:00
|
|
|
# don't suspend-client
|
|
|
|
unbind-key C-z
|
|
|
|
|
2013-07-22 16:42:38 -06:00
|
|
|
# Local config
|
|
|
|
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
|