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
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//' )