Ajout de l'updater de modules de vim
This commit is contained in:
parent
317061955a
commit
b6ca59c7d1
1 changed files with 30 additions and 0 deletions
30
.vim/bundle/update.fish
Executable file
30
.vim/bundle/update.fish
Executable file
|
@ -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
|
Loading…
Reference in a new issue