-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
64 lines (52 loc) · 1.96 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
unbind C-b
set-option -g prefix C-k # Set new Prefix
bind-key C-k send-prefix
setw -g mode-keys vi
set -g escape-time 50
set -sg repeat-time 400
set -g renumber-windows on
set -g mouse on
set-option -g history-limit 20000
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'egel/tmux-gruvbox'
set -g @plugin 'catppuccin/tmux#latest'
# set -g @tmux-gruvbox 'dark' # or 'light'
set -g @catppuccin_flavor 'frappe' # latte,frappe, macchiato or mocha
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_window_default_text "#W"
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
# split current window horizontally
bind - split-window -v -c "#{pane_current_path}"
# split current window vertically
bind | split-window -h -c "#{pane_current_path}"
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# pane resizing
bind -r H resize-pane -L 6
bind -r J resize-pane -D 6
bind -r K resize-pane -U 6
bind -r L resize-pane -R 6
# window navigation
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi Enter send -X cancel
bind -T copy-mode-vi Escape send -X clear-selection
# Pane and windows
bind b break-pane
bind-key C-m command-prompt -p "Move pane to window:" "join-pane -t :'%%'"
bind-key -r C-O rotate-window
run '~/.tmux/plugins/tpm/tpm'