-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·78 lines (56 loc) · 1.97 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
# Set terminal in tmux
# set -g default-terminal "xterm-kitty"
# tell Tmux that outside terminal supports true color
set -ga terminal-overrides ",xterm-256color*:Tc"
set -sg escape-time 0
# Set Prefix to Ctrl-a
set-option -g prefix C-a
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#VI keybinds
set-option -g mode-keys vi
set-option -g history-limit 100000
# switches to last window
bind-key -n M-a last-window
bind-key -n M-f split-window -v "tmux-sessionizer"
bind-key -n M-0 select-window -t 0
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Mouse mode
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# List of plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Tmux Continuum
set -g @continuum-restore 'on'
# Disallow automatic window rename
set -g allow-rename off
setw -g aggressive-resize on
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# tmux resurrect
set -g @resurrect-capture-pane-contents 'on'
# for vim
set -g @resurrect-strategy-vim 'session'
# # for neovim
set -g @resurrect-strategy-nvim 'session'
# ricing
set -g status-interval 2
set -g status-right '%I:%M%p - %d/%m/%y '
set -g status-bg colour187
set -g status-bg black
set -g status-fg white
set-option -g focus-events on
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'