blob: 5b0f01f77d502ff99291f4d2e75e8ba81d0f161c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# --- obvious settings ---
# basics
set -g default-terminal "tmux-256color" # colors
set -g mouse on # mouse mode
set -sg escape-time 10 # fix vim
set -g xterm-keys on # ctrl-arrows, others...
# 0 is very far away from 1
set -g base-index 1
set -g pane-base-index 1
# terminal titles
set -g set-titles on
set -g set-titles-string "#T"
# true colors
set -ga terminal-overrides ",alacritty:RGB"
set -ga terminal-overrides ",foot:RGB"
set -ga terminal-overrides ",*256col*:RGB"
set -ga terminal-overrides ",xterm-kitty:RGB"
# --- keybinds ---
# splitting
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# alt-direction 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
# convenience
bind r source-file ~/.config/tmux/tmux.conf
# local conf
source-file -q ~/.config/tmux/local.tmux
# vim: ft=tmux
|