6 lines
332 B
Bash
6 lines
332 B
Bash
alias setproxy="export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"
|
|
alias unsetproxy="set -e http_proxy https_proxy all_proxy"
|
|
|
|
# The following alias is for bash or zsh
|
|
[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] && \
|
|
alias unsetproxy="unset http_proxy https_proxy all_proxy" |