Fix clipboard copy, add mouse mode

This commit is contained in:
Danny Oh 2024-07-01 18:12:44 -05:00
parent 9a08f0346d
commit a1920792f6

View File

@ -13,14 +13,17 @@ run '~/.tmux/plugins/tpm/tpm'
# set terminal colors to 24-bit # set terminal colors to 24-bit
set-option -sa terminal-overrides ",xterm*:Tc" set-option -sa terminal-overrides ",xterm*:Tc"
# use zsh
set-option -g default-shell /bin/zsh set-option -g default-shell /bin/zsh
# enable mouse mode
set -g mouse on
# vi keys for navigation
set-window-option -g mode-keys vi set-window-option -g mode-keys vi
# copy mode and clipboard # copy mode and clipboard
bind-key -T copy-mode-vi v send-keys -X begin-selection 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 C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
bind-key v copy-mode bind-key v copy-mode
set -g set-clipboard on set -g set-clipboard on
set -as terminal-feature ',*:clipboard' set -as terminal-feature ',*:clipboard'