-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
50 lines (36 loc) · 1.19 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
set -g default-terminal "ghostty"
set-window-option -g mode-keys vi
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
bind-key p paste-buffer
bind -n C-k clear-history
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
bind -n C-h if-shell "$is_vim" \
"send-keys C-h" \
"select-pane -L"
bind -n C-j if-shell "$is_vim" \
"send-keys C-j" \
"select-pane -D"
bind -n C-k if-shell "$is_vim" \
"send-keys C-k" \
"select-pane -U"
bind -n C-l if-shell "$is_vim" \
"send-keys C-l" \
"select-pane -R"
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# default statusbar colors
set-option -g status-bg "#1E1F29"
set-option -g status-fg colour205
# pane number display
set-option -g display-panes-active-colour colour203
set-option -g display-panes-colour colour84
# clock
set-window-option -g clock-mode-colour colour205