Last active
September 25, 2020 08:26
-
-
Save phobal/d86eeae889945666197ce30e7c73f67e to your computer and use it in GitHub Desktop.
如何让 Mac 终端走 SS 代理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cd ~/.zshrc 添加如下配置 | |
| # 终端使用科学上网配置 | |
| # 开启,这里的端口号根据系统上 SS 软件的端口号为准 | |
| alias ss='export all_proxy=socks5://127.0.0.1:1086' | |
| # 关闭 | |
| alias unss='unset all_proxy' | |
| # source .zshrc | |
| # 需要使用的时候执行 ss | |
| # 不需要使用的时候执行 unss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment