diff update-vendor @ 707:4576f1471f53

[update-vendor, vim] add ctrlp
author nanaya <me@nanaya.net>
date Sun, 18 Dec 2022 22:27:56 +0900
parents 4b30df382167
children 42e58cea7821
line wrap: on
line diff
--- a/update-vendor	Sun Dec 18 22:23:22 2022 +0900
+++ b/update-vendor	Sun Dec 18 22:27:56 2022 +0900
@@ -23,8 +23,8 @@
 
 _get_pack_github() {
   (
-    wget -nv -O - "$3" | unzip -q -
-    mv "./${1}-${2}" "./${1}"
+    wget -nv -O - "https://github.com/${1}/${2}/archive/refs/heads/${3}.zip" | unzip -q -
+    mv "./${2}-${3}" "./${2}"
   )
 }
 
@@ -75,7 +75,8 @@
 
   touch empty
   rm -rf ./*
-  _get_pack_github "srcery-vim" "master" "https://github.com/srcery-colors/srcery-vim/archive/refs/heads/master.zip"
+  _get_pack_github "srcery-colors" "srcery-vim" "master"
+  _get_pack_github "ctrlpvim" "ctrlp.vim" "master"
 )
 }