From a02ccb3bb7f46c30e10928bdde1a5eede6eac0c1 Mon Sep 17 00:00:00 2001 From: Vincent Capelle Date: Sun, 3 Nov 2024 21:32:00 -0500 Subject: [PATCH] Make Tmux auto-install TPM and plugins --- byobu/.tmux.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/byobu/.tmux.conf b/byobu/.tmux.conf index 3723f51..1776cf2 100644 --- a/byobu/.tmux.conf +++ b/byobu/.tmux.conf @@ -17,5 +17,11 @@ 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" { + set-environment -g TMUX_PLUGIN_MANAGER_PATH "~/.tmux.d/plugins/" + 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'