42 lines
830 B
Plaintext
Raw Normal View History

2023-08-16 14:25:19 +00:00
# global options
2024-02-01 19:59:19 +00:00
set -g base-index 1
2023-08-26 18:21:53 +00:00
set -g terminal-overrides ",*:RGB"
set -g escape-time 0
set -g focus-events on
2023-08-16 14:25:19 +00:00
set -g mouse on
2024-02-01 19:59:19 +00:00
set -g prefix C-Space
2023-08-16 14:25:19 +00:00
# unbind all
unbind-key -a
2024-02-01 19:59:19 +00:00
# prefix using Ctrl-space
bind C-Space send-prefix
2023-08-16 14:25:19 +00:00
2024-02-01 19:59:19 +00:00
# detach tmux using d
bind d detach
2023-08-16 14:25:19 +00:00
2024-02-01 19:59:19 +00:00
# kill pane using q
bind q kill-pane
2024-02-01 22:59:16 +00:00
# restart pane using r
bind r respawn-pane -k
2024-02-01 19:59:19 +00:00
# split panes using arrow keys
bind Right split-window -h
bind Down split-window -v
2023-08-16 14:25:19 +00:00
# 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
2023-08-26 18:21:53 +00:00
2024-02-01 19:59:19 +00:00
# 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
2023-08-26 18:21:53 +00:00
# theme
source-file ~/.config/tmux/theme.conf