9 lines
433 B
Bash
Executable File
9 lines
433 B
Bash
Executable File
# shellcheck shell=ksh
|
|
|
|
# 代理
|
|
export PROXY_END="$(hostname):7890"
|
|
alias enproxy="export https_proxy=http://$PROXY_END:7890 http_proxy=http://$PROXY_END:7890 all_proxy=socks5://$PROXY_END:7890"
|
|
alias unproxy="unset https_proxy http_proxy all_proxy && git config --global --unset http.proxy && git config --global --unset https.proxy"
|
|
alias isproxy="env|grep -i proxy"
|
|
alias gitp="git clone -c http.proxy='http://$PROXY_END:7890' "
|