Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于GFW支配下的一些挣扎 (梯子自备) #106

Open
lanlin opened this issue Nov 3, 2021 · 2 comments
Open

关于GFW支配下的一些挣扎 (梯子自备) #106

lanlin opened this issue Nov 3, 2021 · 2 comments

Comments

@lanlin
Copy link
Owner

lanlin commented Nov 3, 2021

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 "终端代理已关闭"
}
@lanlin
Copy link
Owner Author

lanlin commented Nov 3, 2021

CURL ~/.curlrc

proxy = "socks5h://127.0.0.1:1080"

@lanlin lanlin changed the title 关于GFW支配下的一些挣扎 关于GFW支配下的一些挣扎 (梯子自备) Nov 3, 2021
@lanlin
Copy link
Owner Author

lanlin commented Nov 3, 2021

git ~/.gitconfig

[http]
    proxy = "socks5h://127.0.0.1:1080"
[https]
    proxy = "socks5h://127.0.0.1:1080"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant