notes
notes copied to clipboard
关于GFW支配下的一些挣扎 (梯子自备)
OhMyZsh ~/.zshrc
ZSH_THEME="simple"
plugins=(git)
# HomeBrew Repos (tsinghua)
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
# PHPBrew
export PHPBREW_ROOT="$HOME/.phpbrew"
export PHPBREW_RC_ENABLE=1
export PHPBREW_SET_PROMPT=0
source $PHPBREW_ROOT/bashrc
# ShadowSock Proxy
function proxy_on() {
export all_proxy="socks5h://127.0.0.1:1080"
export http_proxy="socks5h://127.0.0.1:1080"
export https_proxy="socks5h://127.0.0.1:1080"
echo -e "终端代理已开启"
}
function proxy_off() {
unset all_proxy http_proxy https_proxy
echo -e "终端代理已关闭"
}
CURL ~/.curlrc
proxy = "socks5h://127.0.0.1:1080"
git ~/.gitconfig
[http]
proxy = "socks5h://127.0.0.1:1080"
[https]
proxy = "socks5h://127.0.0.1:1080"