-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
29 lines (22 loc) · 981 Bytes
/
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
setw -g mouse on
set -g default-terminal "screen-256color"
setw -g mode-keys vi
# Make windows to always renumber when one is killed
set-option -g renumber-windows on
# Allow OSC52 passthrough to enable syncing vim "+" clipboard to system clipboard
# https://github.com/ojroques/nvim-osc52?tab=readme-ov-file#configuration-for-tmux
if-shell -b '[ "$(tmux -V | cut -d" " -f2)" >= "3.3" ]' \
'set -g allow-passthrough on' \
'set -s set-clipboard on'
# https://superuser.com/a/552493
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# https://github.com/tmux-plugins/tpm#installation
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "cpu-usage ram-usage"
set -g @dracula-cpu-display-load true
set -g @dracula-show-left-icon shortname
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'