From af9f25cedb81839510b634c786a717c5ee8cbb55 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Mon, 16 Oct 2023 15:55:27 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20:=20r=C3=A9=C3=A9criture?= =?UTF-8?q?=20du=20script=20de=20mise=20=C3=A0=20jour=20de=20Neovim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/updateall/scripts/80-nvim | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/updateall/scripts/80-nvim b/config/updateall/scripts/80-nvim index af53901..d5b6277 100755 --- a/config/updateall/scripts/80-nvim +++ b/config/updateall/scripts/80-nvim @@ -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