From b6ca59c7d1da32decea67b703d52d6b2318fd676 Mon Sep 17 00:00:00 2001 From: Breizh Date: Sat, 21 Oct 2017 12:37:28 +0200 Subject: [PATCH] Ajout de l'updater de modules de vim --- .vim/bundle/update.fish | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 .vim/bundle/update.fish diff --git a/.vim/bundle/update.fish b/.vim/bundle/update.fish new file mode 100755 index 0000000..3f456b4 --- /dev/null +++ b/.vim/bundle/update.fish @@ -0,0 +1,30 @@ +#!/usr/bin/fish + +for folder in * + echo -n "[ ] Mise à jour de $folder" + if test -d $folder + cd $folder + git pull >/dev/null ^/dev/null + and begin + echo -en "\r[ " + set_color green + echo -n OK + set_color normal + echo " ]" + end + or begin + echo -en "\r[" + set_color red + echo FAIL + set_color normal + echo -n "]" + end + cd - + else + echo -ne "\r[" + set_color yellow + echo -n SKIP + set_color normal + echo "]" + end +end