feat: Remove tpm as submodule and automate installation of tpm from tmux.conf

This commit is contained in:
Xavier Logerais 2025-01-25 16:09:03 +01:00
parent a042e5e356
commit 97987beea8
3 changed files with 3 additions and 4 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "plugins/tpm"]
path = plugins/tpm
url = https://github.com/tmux-plugins/tpm

@ -1 +0,0 @@
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946

View File

@ -64,5 +64,8 @@ set -g @plugin "nordtheme/tmux"
# set -g @plugin 'git@github.com:user/plugin' # set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.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) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run "${HOME}/.config/tmux/plugins/tpm/tpm" run "${HOME}/.config/tmux/plugins/tpm/tpm"