-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
79 lines (58 loc) · 2.45 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
68
69
70
71
72
73
74
75
76
77
78
79
# ------------------------------------------------------------------------------
# - Binds Section -
# ------------------------------------------------------------------------------
# Better text selection binds
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Open new panes in cwd
bind '"' split-window -v -c '#{pane_current_path}'
bind % split-window -h -c '#{pane_current_path}'
# - Source tmux config file
unbind r
bind r source-file ~/.tmux.conf
# ------------------------------------------------------------------------------
# - Config Section -
# ------------------------------------------------------------------------------
# Set tmux to use 256 color profile
set -g default-terminal 'screen-256color'
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Remove delay for vim mode switching
set -sg escape-time 0
# Set catppuccin theme to the mocha flavour
set -g @catppuccin_flavour 'mocha'
# Enable Mouse support
set -g mouse on
# Enable vim mode
set-window-option -g mode-keys vi
# Start windows numbering at 1
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Set continous saving of tmux environment
set -g @Continuum-save-interval '15'
set -g @continuum-restore 'on'
# ------------------------------------------------------------------------------
# - Tmux Plugin Manager Section -
# ------------------------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
# Enables seamless integration between tmux and vim
set -g @plugin 'christoomey/vim-tmux-navigator'
# A set of useful options
# set -g @plugin 'tmux-plugins/tmux-sensible'
# Tokyongight them
set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @tokyo-night-tmux_window_id_style dsquare
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style dsquare
# Yank
set -g @plugin 'tmux-plugins/tmux-yank'
# Tmux Resurrect
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# Tmux Continuum (Continuous saving of tmux environment)
# set -g @plugin 'tmux-plugins/tmux-continuum'
# Tmux Battery
# set -g @plugin 'tmux-plugins/tmux-battery'
# Initialize TPM
run '~/.tmux/plugins/tpm/tpm'