-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
50 lines (38 loc) · 1.13 KB
/
.tmux.conf
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
42
43
44
45
46
47
48
49
50
# Support for true color and italic
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc,alacritty:Tc"
# Send focus events (recommended by Neovim)
set -g focus-events on
# Custom prefix key
set -g prefix `
bind ` send-prefix
# Avoid delay after Esc
set -s escape-time 0
# Start numbering from one
set -g base-index 1
setw -g pane-base-index 1
# Increase scrollback size
set -g history-limit 100000
# Disable search wrapping
set -g wrap-search off
# Vi bindings in copy mode
setw -g mode-keys vi
bind -Tcopy-mode-vi v send -X begin-selection
bind -Tcopy-mode-vi y send -X copy-selection
# Window navigation
bind = next-window
bind - previous-window
# Dwm style pane navigation
bind j select-pane -t :.+
bind k select-pane -t :.-
bind J swap-pane -D
bind K swap-pane -U
bind h resize-pane -L 5
bind l resize-pane -R 5
# Status line on top
set -g status-position top
# Show longer session names
set -g status-left-length 16
# Gruvbox color scheme and status line
# See https://github.com/LawAbidingCactus/tmux-gruvbox-truecolor
if "test -r ~/.tmux/gruvbox-truecolor.conf" "source ~/.tmux/gruvbox-truecolor.conf"