42 lines
830 B
Plaintext
42 lines
830 B
Plaintext
# global options
|
|
set -g base-index 1
|
|
set -g terminal-overrides ",*:RGB"
|
|
set -g escape-time 0
|
|
set -g focus-events on
|
|
set -g mouse on
|
|
set -g prefix C-Space
|
|
|
|
# unbind all
|
|
unbind-key -a
|
|
|
|
# prefix using Ctrl-space
|
|
bind C-Space send-prefix
|
|
|
|
# detach tmux using d
|
|
bind d detach
|
|
|
|
# kill pane using q
|
|
bind q kill-pane
|
|
|
|
# restart pane using r
|
|
bind r respawn-pane -k
|
|
|
|
# split panes using arrow keys
|
|
bind Right split-window -h
|
|
bind Down split-window -v
|
|
|
|
# switch panes using Alt-arrow without prefix
|
|
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
|
|
|
|
# resize panes using Shift-arrow without prefix
|
|
bind -n S-Up resize-pane -U 5
|
|
bind -n S-Down resize-pane -D 5
|
|
bind -n S-Left resize-pane -L 5
|
|
bind -n S-Right resize-pane -R 5
|
|
|
|
# theme
|
|
source-file ~/.config/tmux/theme.conf
|