tmux: added automatic TPM installation

This commit is contained in:
joshuayuen99 2023-11-03 23:08:18 -04:00
parent c608125b7d
commit c58f168b82
Signed by: josh
GPG Key ID: FBE9A7AE906AD5CC
1 changed files with 4 additions and 0 deletions

View File

@ -81,5 +81,9 @@ 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
# Automatically install tpm if needed
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'