Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (39 sloc) 1.27 KB
# 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 :+
bind 4 resize-pane -L
bind 2 resize-pane -D
bind 8 resize-pane -U
bind 6 resize-pane -R
# use F1 as control key
unbind C-b
set -g prefix F1
# colors!
set-option -g status-utf8 on
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 white
set-option -g pane-active-border-bg black
set-option -g pane-border-fg blue
set-option -g pane-border-bg black
setw -g window-status-current-fg green
setw -g window-status-alert-attr default
setw -g window-status-alert-fg yellow
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]>>>#[default]'
set -g status-right '#[fg=green]<<< #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set -g set-titles on
set -g set-titles-string '(#S):[ #I/#P:#W ] - tmux'
setw -g window-status-format '( #I/#P:#W )'
setw -g window-status-current-format '#[fg=white,bold][ #I/#P:#W ]#[fg=default]'
# <Prefix>r reloads the config file
bind r source-file ~/.tmux.conf
setw -g mode-mouse on
set-option -g mouse-select-pane on
set history-limit 4096