aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2025-11-25 20:06:42 +0000
committerJustine Smithies <justine@smithies.me.uk>2025-11-25 20:06:42 +0000
commit365da4d65b692fda974d03d634f94b355e635ad7 (patch)
treec361389b22cb4aecc834e503195c9c5af1656cc4 /.local
parent8954529c8bb3f3bd0f2be2895eaafc597a0057b0 (diff)
Now I'm using in built package manager of vim I made a script to update the plugins
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/update-vim-plugins.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/update-vim-plugins.sh b/.local/bin/update-vim-plugins.sh
new file mode 100755
index 0000000..5286434
--- /dev/null
+++ b/.local/bin/update-vim-plugins.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PLUGIN_DIR="${HOME}/.vim/pack"
+
+echo "Updating all plugins in ${PLUGIN_DIR}"
+for directory in ${PLUGIN_DIR}/*; do
+ for subdir in "$directory"/start/* "$directory"/opt/*; do
+ if [ -d "${subdir}" ]; then
+ plugin=$(basename "${subdir}")
+ echo "Updating ${plugin}"
+ git -C "${subdir}" pull
+ fi
+ done
+done