Skip to content

Instantly share code, notes, and snippets.

@Eminlin
Created January 5, 2021 09:35
Show Gist options
  • Save Eminlin/3240b522c4f8f07ef77f640ad0f5cd54 to your computer and use it in GitHub Desktop.
Save Eminlin/3240b522c4f8f07ef77f640ad0f5cd54 to your computer and use it in GitHub Desktop.
ename zshrc
export GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy,direct
export PATH=/usr/local/opt/openssl/bin:$PATH
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
export PATH=/usr/local/opt/mysql@5.6/bin:$PATH
export GOPATH=/usr/local/var/go
alias ll='ls -alF'
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
export PATH="/usr/local/opt/php@7.2/bin:$PATH"
export PATH="/usr/local/opt/php@7.2/sbin:$PATH"
export PATH="/usr/local/var/go/bin:$PATH"
function proxy_off(){
unset http_proxy
unset https_proxy
echo -e "*****已关闭代理*****"
}
function proxy_on() {
export http_proxy="http://127.0.0.1:1087"
export https_proxy=$http_proxy
echo -e "*****已开启代理*****"
}
function git_on() {
git config --global http.proxy socks5://127.0.0.1:1089
git config --global https.proxy socks5://127.0.0.1:1089
git config --global http.sslVerify false
echo -e "*** git proxy on ***"
}
function git_off(){
#取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
echo -e "*** git proxy off ***"
}
export HOMEBREW_NO_AUTO_UPDATE=true
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export PATH="/usr/local/opt/php@7.2/bin:$PATH"
export PATH="/usr/local/opt/php@7.2/sbin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment