dereknex/p ( shell)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| #!/bin/bashecho "HTTP Proxy setting..."HTTP_PROXY="http://127.0.0.1:8123"HTTPS_PROXY="https://127.0.0.1:8123"echo "$@"if [ "$1" = "git" ]; then git config --global http.proxy $HTTP_PROXYgit config --global https.proxy $HTTPS_PROXY$@git config --global --unset http.proxygit config --global --unset https.proxyelsehttp_proxy=$HTTP_PROXY https_proxy=$HTTPS_PROXY $@fiecho "HTTP Proxy has beed canceled. |
No comments:
Post a Comment