diff --git a/byobu/.tmux.conf b/byobu/.tmux.conf index 3723f51..cc53fa2 100644 --- a/byobu/.tmux.conf +++ b/byobu/.tmux.conf @@ -17,5 +17,9 @@ set -g @resurrect-strategy-nvim 'session' # Always keep window numbers sequential without gaps set-option -g renumber-windows on -# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +# Install TPM if not found +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 TPM (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'