From 97987beea8f929e8fec30ee9e6a8bdd1f1ef82e0 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sat, 25 Jan 2025 16:09:03 +0100 Subject: [PATCH] feat: Remove tpm as submodule and automate installation of tpm from tmux.conf --- .gitmodules | 3 --- plugins/tpm | 1 - tmux.conf | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 160000 plugins/tpm diff --git a/.gitmodules b/.gitmodules index d9afc26..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "plugins/tpm"] - path = plugins/tpm - url = https://github.com/tmux-plugins/tpm diff --git a/plugins/tpm b/plugins/tpm deleted file mode 160000 index 99469c4..0000000 --- a/plugins/tpm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946 diff --git a/tmux.conf b/tmux.conf index e0149eb..6eca7a5 100644 --- a/tmux.conf +++ b/tmux.conf @@ -64,5 +64,8 @@ set -g @plugin "nordtheme/tmux" # set -g @plugin 'git@github.com:user/plugin' # set -g @plugin 'git@bitbucket.com:user/plugin' +# Automatically install tpm +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 (keep this line at the very bottom of tmux.conf) run "${HOME}/.config/tmux/plugins/tpm/tpm"