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'