zsh-shell-init/alias.d/proxy.sh

9 lines
433 B
Bash
Raw Normal View History

2023-09-13 17:10:07 +08:00
# 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' "