tmux/.config/srv-tmux.conf

61 lines
1.7 KiB
Plaintext

set -g default-terminal "tmux-256color"
set -g assume-paste-time 1
set -g base-index 1
set -g pane-base-index 1
set -g default-command ""
set -g default-shell "/bin/bash"
set -g destroy-unattached off
set -g detach-on-destroy on
set -g display-panes-active-colour red
set -g display-panes-colour blue
set -g display-panes-time 1000
set -g display-time 750
set -g history-limit 10000
set -g word-separators " -_@"
set -g renumber-windows off
set -g repeat-time 500
set -g set-titles off
set -g set-titles-string "#S:#I:#W - "#T" #{session_alerts}"
set -g status off
# Change prefix to C-a
set -g prefix C-a
#set-option -g status-style fg=black,bg=cyan
set -g message-command-style fg=green,bg=black
set -g message-style fg=white,bg=red
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
# Set audible bell on, and visual bell off because it is slooooowwwww
set -g bell-action any
set -g visual-bell off
set -g visual-silence off
set -g visual-activity off
# Pane active colors
set -g pane-active-border-style fg=cyan,bright
# Pane inactive colors
set -g pane-border-style fg=colour8
# Use C-a,Shift-R to reload configuration
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Use C-a,a to send prefix to nested session
bind-key a send-prefix
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Do the same for HJKL
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# No delay for escape key press
set -sg escape-time 0