32 lines
734 B
Bash
32 lines
734 B
Bash
# Tmux config
|
|
|
|
# Prefix
|
|
set -g prefix C-a
|
|
unbind C-b
|
|
bind C-a send-prefix
|
|
|
|
# Quality of life
|
|
set -g mouse on
|
|
set -g history-limit 50000
|
|
set -g default-terminal "tmux-256color"
|
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
|
set -g escape-time 0
|
|
set -g focus-events on
|
|
|
|
# Windows and panes
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
set -g renumber-windows on
|
|
|
|
# Vim-style navigation
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
# Status bar
|
|
set -g status-style bg=default
|
|
set -g status-left "#[fg=blue,bold] #S "
|
|
set -g status-right "#[fg=cyan] %H:%M #[fg=white]│ #[fg=green]%d.%m.%Y "
|