Join Nostr
2025-11-25 20:03:48 UTC
in reply to

Justine Smithies on Nostr: Since I'm now using the in built package manager of vim I made a wee script to update ...

Since I'm now using the in built package manager of vim I made a wee script to update all of my #vim plugins. I'll share it here if it helps anyone else out ?

#!/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 --quiet
fi
done
done
CC: