new file: makefile
[GalaxyCodeBases.git] / bash / etc / raw_github.sh
blob5bf170f71b91987d2b6c1b98fdac3473f66e4e16
1 #!/bin/bash
2 # data: 2020-03-31
3 # author: muzi502
4 # for: Fuck GFW and download some raw file form github without proxy using jsDelivr CDN
5 # usage: save the .she to your local such as /usr/bin/rawg, and chmod +x /usr/bin/rawg
6 # use rawg https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh to download
8 # URL: https://gist.github.com/muzi502/c1bd677c5b4c41115dcfff6e724dee8b
10 set -xue
11 # GitHub rul: https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh
12 # jsDelivr url: https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh/tools/install.sh
14 wget $(echo $1 | sed 's/raw.githubusercontent.com/cdn.jsdelivr.net\/gh/' \
15 | sed 's/github.com/cdn.jsdelivr.net\/gh/' \
16 | sed 's/\/master//' | sed 's/\/blob//' )
18 # curl $(echo $1 | sed 's/raw.githubusercontent.com/cdn.jsdelivr.net\/gh/' \
19 # | sed 's/github.com/cdn.jsdelivr.net\/gh/' \
20 # | sed 's/\/master//' | sed 's/\/blob//' )