From c58f168b82feb7223a7ce19b5df9e1e6b3b9102a Mon Sep 17 00:00:00 2001 From: joshuayuen99 Date: Fri, 3 Nov 2023 23:08:18 -0400 Subject: [PATCH] tmux: added automatic TPM installation --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index b1903cd..b279505 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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'