Browse code

WIP: Add dotfiles

Robert Cranston authored on 18/06/2022 11:37:28
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,54 @@
1
+## Terminal
2
+# See "terminal-overrides" and "TERMINFO EXTENSIONS" in `tmux(1)` and
3
+# "Parameterized Strings" in `terminfo(5)`. Note that `tmux` seems to provide
4
+# built-in `terminal-overrides` for `xterm` but not for `linux`, see `tmux show
5
+# -s terminal-overrides`.
6
+set -s default-terminal tmux
7
+if '[ "$(tput colors)" -ge 256 ]' {
8
+  set -s default-terminal tmux-256color
9
+}
10
+if '[ "$COLORTERM" ]' {
11
+  set -ga terminal-overrides '*:Tc'
12
+}
13
+set -ga terminal-overrides 'linux:Ss=\E[?%?%p1%{3}%<%t%{8}%e%{2}%;%dc'
14
+set -s escape-time 0
15
+set -s focus-events on
16
+set -g set-titles on
17
+set -g set-titles-string 'tmux:#W'
18
+set -gw xterm-keys on
19
+
20
+## Windows
21
+set -g base-index 1
22
+set -g pane-base-index 1
23
+set -g renumber-windows on
24
+
25
+## History
26
+set -g history-limit 10000
27
+
28
+## Activity
29
+set -gw monitor-activity on
30
+set -g visual-activity on
31
+
32
+## Multiple clients
33
+set -g window-size smallest
34
+set -gw aggressive-resize on
35
+
36
+## Mouse
37
+set -g mouse on
38
+
39
+## Colors
40
+set -g status-style             'fg=Black bg=BrightWhite'
41
+set -g pane-border-style        'fg=White'
42
+set -g pane-active-border-style 'fg=BrightWhite'
43
+
44
+## Bindings
45
+
46
+### Vi-like
47
+set -gw mode-keys   vi
48
+set -gw status-keys vi
49
+bind C-s split-window -v
50
+bind C-v split-window -h
51
+bind C-j select-pane  -D
52
+bind C-k select-pane  -U
53
+bind C-h select-pane  -L
54
+bind C-l select-pane  -R