-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
66 lines (51 loc) · 2.1 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
65
66
# Set true color (fix vim scheme)
set-option -sa terminal-overrides ",xterm*:Tc"
# Prefix rebind to <C-a>
unbind C-a
set -g prefix C-a
bind C-a send-prefix
# Keybinds:
# vim binds
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
# Open panes in cwd
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Optionally open new window in cwd
bind C new-window -c "#{pane_current_path}"
# Reload tmux config
bind r source-file ~/.tmux.conf \; display-message "conf sourced"
# Restore screen clearing (shadowed by vim-tmux-navigator) with <prefix> <C-l>
bind C-l send-keys 'C-l'
# Plugins:
# Install with <Prefix> + I
# Update with <Prefix> + U
set -g @plugin 'tmux-plugins/tpm'
# Switch between last active with <Prefix> + prefix key w/o C, e.g. C-b + b
set -g @plugin 'tmux-plugins/tmux-sensible'
# <C-[hjkl]> navigation between (neo)vim and tmux
set -g @plugin 'christoomey/vim-tmux-navigator'
# Restore sessions
# <Prefix> + <C-s> - save; <Prefix> + <C-r> - restore
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank' # Normal copy-paste
set -g @plugin 'catppuccin/tmux' # Theme
# Theme options
set -g @catppuccin_flavor 'macchiato'
set -g @catppuccin_window_status "icon"
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_middle_separator " | "
set -g @catppuccin_window_default_fill "none"
set -g @catppuccin_window_current_fill "all"
set -g @catppuccin_status_modules_right "application session host date_time"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█"
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M"
# tmux-yank settings
# remain in copy mode after yanking
set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# To install (run once): git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
run '~/.tmux/plugins/tpm/tpm'