-
Notifications
You must be signed in to change notification settings - Fork 3
/
.tmux.conf
48 lines (36 loc) · 1.38 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
# list of tmux plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'catppuccin/tmux'
# configure catppuccin theme for tmux
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_host "off"
######################
## custom overrides ##
######################
# ensure color mode is correct
set -ag terminal-overrides ",xterm-256color:Tc"
# remap prefix to CTRL-a instead of CTRL-b
set-option -g prefix C-a
bind-key C-a send-prefix
# renumber windows when closing a window
set-option -g renumber-windows on
# rebing split keys to always split in same directory
bind '%' split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# start numbering windows and panes from 1
set -g base-index 1
setw -g pane-base-index 1
# enable mouse (boooh!)
set -g mouse on
# rebind copy mode flows (CTRL-v to toggle between rectangle and line)
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# prefix-K clears the screen; Alacritty remaps this from Command+K
bind K send-keys -R \; send-keys C-l \; clear-history
# Initialize tmux plugin manager
# this line should stay at the bottom of the file.
run '~/.tmux/plugins/tpm/tpm'