52 lines
2.2 KiB
Plaintext
52 lines
2.2 KiB
Plaintext
set -g default-terminal "xterm-256color"
|
|
#set -g set-titles-string '#T'
|
|
#set-option -g set-titles on
|
|
setw -g monitor-activity on
|
|
setw -g aggressive-resize on
|
|
setw -g automatic-rename on
|
|
set -s escape-time 0
|
|
set-window-option -g xterm-keys on
|
|
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
|
|
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
|
|
bind -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
|
|
bind -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
|
|
bind -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
|
|
bind -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
|
|
bind -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
|
|
|
|
bind -n C-j new-window
|
|
bind -n C-h prev
|
|
bind -n C-l next
|
|
bind -n C-M-l swap-window -t +1
|
|
bind -n C-M-h swap-window -t -1
|
|
bind X kill-window
|
|
|
|
set -g status-bg "colour237"
|
|
set -g message-command-fg "colour246"
|
|
set -g status-justify "left"
|
|
set -g status-left-length "100"
|
|
set -g status "on"
|
|
set -g pane-active-border-fg "colour246"
|
|
set -g message-bg "colour239"
|
|
set -g status-right-length "100"
|
|
set -g status-right-attr "none"
|
|
set -g message-fg "colour246"
|
|
set -g message-command-bg "colour239"
|
|
set -g status-attr "none"
|
|
set -g pane-border-fg "colour239"
|
|
set -g status-left-attr "none"
|
|
setw -g window-status-fg "colour246"
|
|
setw -g window-status-attr "none"
|
|
setw -g window-status-activity-bg "colour237"
|
|
setw -g window-status-activity-attr "none"
|
|
setw -g window-status-activity-fg "colour246"
|
|
setw -g window-status-separator ""
|
|
setw -g window-status-bg "colour237"
|
|
set -g status-left "#[fg=colour235,bg=colour246] #S #[fg=colour246,bg=colour237,nobold,nounderscore,noitalics]"
|
|
set -g status-right "#[fg=colour239,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour246,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour246] #h "
|
|
setw -g window-status-format "#[fg=colour246,bg=colour237] #I #[fg=colour246,bg=colour237] #W "
|
|
setw -g window-status-current-format "#[fg=colour237,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour246,bg=colour239] #I #[fg=colour246,bg=colour239] #W #[fg=colour239,bg=colour237,nobold,nounderscore,noitalics]"
|