100 lines
2.9 KiB
Plaintext
100 lines
2.9 KiB
Plaintext
# tmux v2.9a (or so)
|
|
|
|
set-environment -g PATH "/usr/local/bin:$PATH"
|
|
|
|
unbind-key '"'
|
|
unbind-key %
|
|
|
|
# Status bar colors
|
|
set-option -g status-style "bg=colour235,fg=colour136" # base02,yellow
|
|
|
|
# Default window title colors
|
|
set-window-option -g window-status-style "fg=colour244" # base0
|
|
|
|
# Active window title colors
|
|
set-window-option -g window-status-current-style "fg=colour166,bright" # orange
|
|
|
|
# Pane border
|
|
set-option -g pane-border-style "fg=colour235" # base02
|
|
set-option -g pane-active-border-style "fg=colour240" # base01
|
|
|
|
# Message color
|
|
set-option -g message-style "bg=colour235,fg=colour166" # base02,orange
|
|
|
|
# Pane number display
|
|
set-option -g display-panes-active-colour colour33 # blue
|
|
set-option -g display-panes-colour colour166 # orange
|
|
|
|
# Update status bar every second
|
|
set-option -g status-interval 1
|
|
set-option -g status-justify centre # center align window list
|
|
set-option -g status-left-length 140
|
|
set-option -g status-right-length 140
|
|
set-option -g status-left '#[fg=green,bright]#h #[default,fg=blue,dim]#(tmux-mem-cpu-load -g 0 -a 0 -i 4)#[default]'
|
|
set-option -g status-right '#[fg=red,dim]#(uptime -p | sed -r "s/ hours?/h/" | sed -r "s/ minutes?/min/") #[default,fg=white,bright]%a %l:%M:%S %p #[fg=blue]%Y-%m-%d'
|
|
|
|
# C-b is not acceptable -- Vim uses it
|
|
set-option -g prefix C-a
|
|
bind-key C-a last-window
|
|
|
|
# Start numbering at 1
|
|
set-option -g base-index 1
|
|
|
|
# Allows for faster key repetition
|
|
set-option -s escape-time 0
|
|
|
|
# Rather than constraining window size to the maximum size of any client
|
|
# connected to the *session*, constrain window size to the maximum size of any
|
|
# client connected to *that window*. Much more reasonable.
|
|
set-window-option -g aggressive-resize on
|
|
|
|
# Allow using C-a a <command> to send commands to a nested tmux session
|
|
bind-key a send-prefix
|
|
|
|
# Activity monitoring
|
|
set-window-option -g monitor-activity on
|
|
set-option -g visual-activity on
|
|
|
|
# Horizontal and vertical split
|
|
bind-key b split-window -h -c "#{pane_current_path}"
|
|
bind-key v split-window -c "#{pane_current_path}"
|
|
|
|
# New window
|
|
bind-key c new-window -c "#{pane_current_path}"
|
|
|
|
# Window traversal
|
|
bind-key C-n next-window
|
|
bind-key C-h previous-window
|
|
|
|
# hjkl pane traver
|
|
bind-key h select-pane -L
|
|
bind-key w select-pane -D
|
|
bind-key t select-pane -U
|
|
bind-key n select-pane -R
|
|
|
|
# Horizontal pane resize
|
|
bind-key s resize-pane -R 5
|
|
bind-key m resize-pane -L 5
|
|
|
|
# Reload config
|
|
bind-key C-r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
# Raise scrollback size to ~100000 lines
|
|
set-option -g history-limit 100000
|
|
|
|
# Auto window rename
|
|
set-window-option -g automatic-rename
|
|
|
|
# Terminal color support
|
|
set-option -g default-terminal "screen-256color"
|
|
|
|
# Vi copypaste mode
|
|
set-option -g mode-keys vi
|
|
bind-key -Tcopy-mode-vi v send -X begin-selection
|
|
bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel
|
|
|
|
# Disable mouse support
|
|
set-option -g mouse off
|
|
|
|
set-option -sa terminal-overrides ',xterm-256color:RGB'
|