-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
68 lines (55 loc) · 2.36 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
67
# reload config to leader r
unbind r
bind r source-file ~/.tmux.conf
set -g prefix2 C-s
set -g mouse on
set-option -g status-position top
# persist given names and get index only if not specified
# set-option -g automatic-rename off
set-option -g allow-rename off
# improve colors
set -g default-terminal 'screen-256color'
set-option -a terminal-features 'xterm-256color:RGB'
set-option -a terminal-features 'gnome-256color:RGB'
set-option -a terminal-features 'screen-256color:RGB'
# act like vim in copy mode
setw -g mode-keys vi
# plugin vim-tmux-navigator provides ctrl-hjkl for
# navigating between tmux pane or vim splits
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# make NeoVim more responsive to escape sequences
set-option -sg escape-time 10
# allow NeoVim to detect when tmux windows gain or lose focus
set-option -g focus-events on
# tmux plugin manager https://github.com/tmux-plugins/tpm
# tpm is updated in my .mrconfig which handles initial clone as well
# into ~/.tmux/plugins/tpm
# then from tmux session leader + U to update plugins
# List of plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmuxifier'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-yank'
# Configure the catppuccin plugin
set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_window_status_style "slanted" # basic, rounded, slanted, custom, or none
# specify windows (tmux tabs are called windows not to be confused with pane)
set -g @catppuccin_window_current_text " #W"
set -g @catppuccin_window_text " #W"
# Make the status line pretty and add some modules
set -g status-left-length 100
set -g status-left "#{E:@catppuccin_status_session}"
set -g status-right-length 100
set -g status-right "#{E:@catppuccin_status_application}"
set -ag status-right "#{E:@catppuccin_status_user}"
set -ag status-right "#{E:@catppuccin_status_host}"
# Initialize TMUX plugin manager (keep this line at near the very bottom of tmux.conf; unless you have a reason)
run '~/.tmux/plugins/tpm/tpm'
# after plugins are loaded
# Load catppuccin; clone yourself keep out of tpm as has had some issues with name conflicts
# try myrepo (mr) to manage this and other repos not handled by your package manager of choice
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux