/
.tmux.conf
69 lines (50 loc) · 2.06 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
set-option -sa terminal-overrides ",xterm*:Tc"
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
set-option -g focus-events on
# Nice looking color
set -g default-terminal "screen-256color"
# C-b is annoying
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# Start with 1 plz
set -g base-index 1
setw -g pane-base-index 1
bind c new-window -c "#{pane_current_path}"
# Better split window
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind _ split-window -v -c "#{pane_current_path}"
# Also resize pane
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z # Maximize and minimize
set -g mouse on # Let's try this
bind q killp
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
bind C-Y set-window-option synchronize-panes
set -sg escape-time 0
set-option -g set-titles on
set-option -g set-titles-string "#{session_name} - #{host}"
# tpm plugin
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugin
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'mocha' # or frappe, macchiato, mocha
set -g @catppuccin_window_tabs_enabled off # or off to disable window_tabs
set -g @catppuccin_user "on"
# set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
# set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
# set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents
# set -g @continuum-restore 'on' # enable tmux-continuum functionality
# set -g @resurrect-strategy-nvim 'session'
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'