Mise à jour : réécriture du script de mise à jour de Neovim

This commit is contained in:
Hippolyte Chauvin 2023-10-16 15:55:27 +02:00
parent f4b71cf2e0
commit af9f25cedb

View file

@ -1,3 +1,18 @@
#!/bin/sh
nvim +PackerUpdate
update_plugin() {
cd "$1" || return
printf 'Updating plugin \033[1m%s\033[0m...\n' "$(echo "$1" | sed 's|/start||')"
git pull
}
cd ~/.local/share/nvim/site/pack || exit
for i in */start/*; do
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
sleep 1
done
update_plugin "$i" &
done
wait