dotfiles/tmux.conf

60 lines
1.3 KiB
Plaintext

# General
set -g default-terminal screen-256color
set -g history-limit 100000
set -g lock-after-time 1800
set -g default-command "$SHELL"
set -g update-environment ""
setw -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
set -g status on
setw -g monitor-activity off
set -g visual-activity off
set -g visual-bell off
setw -g xterm-keys off
setw -g automatic-rename off
set -sg escape-time 0
set -g history-limit 30000
# https://stackoverflow.com/questions/11832199/tmux-set-g-mouse-mode-on-doesnt-work
is_older="[[ $(tmux -V | cut -d' ' -f2) -lt 2.1 ]] && true || false"
if-shell "$is_older" "set -g mode-mouse off; set -g mouse-resize-pane off;\
set -g mouse-select-pane off; set -g mouse-select-window off" "set -g mouse off"
set -g display-time 2000
# Key bindings
unbind C-b
set -g prefix C-a
bind a send-prefix
bind '"' split-window -c "#{pane_current_path}"
bind '%' split-window -h -c "#{pane_current_path}"
bind C-a last-window
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
set -g status-keys emacs
bind r source ~/.tmux.conf
# Appearance
set -g status-bg black
set -g status-fg white
set -g status-left "#[fg=green]#H[#S] "
set -g status-left-length 13
set -g status-right " #[fg=yellow]"
set -g window-status-current-style "fg=red"