diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2025-11-25 20:06:42 +0000 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2025-11-25 20:06:42 +0000 |
| commit | 365da4d65b692fda974d03d634f94b355e635ad7 (patch) | |
| tree | c361389b22cb4aecc834e503195c9c5af1656cc4 /.local/bin | |
| parent | 8954529c8bb3f3bd0f2be2895eaafc597a0057b0 (diff) | |
Now I'm using in built package manager of vim I made a script to update the plugins
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/update-vim-plugins.sh | 14 |
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 |
