-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpull-updates.sh
executable file
·69 lines (63 loc) · 2.03 KB
/
pull-updates.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
#
# 2019/02/16 StarryLeo
set -eu
shopt -s nocaseglob
function _dl() {
local tmp="tmp" docs="docs"
[ -d "$tmp" ] || mkdir "$tmp"
[ -d "$docs" ] || mkdir "$docs"
curl -L "https://api.github.com/repos/$1/tarball" \
-H "Authorization: token $VIM_CS_GITHUB_API_TOKEN" \
| tar xz --strip=1 -C "$tmp"/
rsync -avh "$tmp"/ --include='autoload/***' \
--include='colors/***' --exclude='*' .
cp -r "$tmp"/README* "$docs"/"${1//\//-}".md
rm -rf "$tmp"
}
function _main() {
_dl ajmwagar/vim-deus
_dl arcticicestudio/nord-vim
_dl atelierbram/vim-colors_atelier-schemes
_dl ayu-theme/ayu-vim
_dl caksoylar/vim-mysticaltutor
_dl cocopon/iceberg.vim
_dl danilo-augusto/vim-afterglow
_dl endel/vim-github-colorscheme
_dl hzchirs/vim-material
_dl jacoborus/tender.vim
_dl jnurmine/Zenburn
_dl joshdick/onedark.vim
_dl josuegaleas/jay
_dl junegunn/seoul256.vim
_dl kaicataldo/material.vim
_dl kristijanhusak/vim-hybrid-material
_dl KabbAmine/yowish.vim
_dl KeitaNakamura/neodark.vim
_dl lifepillar/vim-solarized8
_dl mhartington/oceanic-next
_dl morhetz/gruvbox
_dl nanotech/jellybeans.vim
_dl StarryLeo/snow
_dl StarryLeo/stellarized
_dl Nequo/vim-allomancer
_dl NLKNguyen/papercolor-theme
_dl rakr/vim-one
_dl raphamorim/lucario
_dl reedes/vim-colors-pencil
_dl romainl/Apprentice
_dl romainl/flattened
_dl Rigellute/rigel
_dl Rigellute/shades-of-purple.vim
_dl sainnhe/everforest
_dl scheakur/vim-scheakur
_dl srcery-colors/srcery-vim
_dl tomasr/molokai
_dl tyrannicaltoucan/vim-deep-space
_dl tyrannicaltoucan/vim-quantum
_dl w0ng/vim-hybrid
_dl whatyouhide/vim-gotham
_dl zanglg/nova.vim
chmod -x colors/*vim
}
_main