Mise à jour : réécriture du script de mise à jour de Neovim
This commit is contained in:
parent
f4b71cf2e0
commit
af9f25cedb
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue