Skip to content

Instantly share code, notes, and snippets.

@phobal
Last active September 25, 2020 08:26
Show Gist options
  • Select an option

  • Save phobal/d86eeae889945666197ce30e7c73f67e to your computer and use it in GitHub Desktop.

Select an option

Save phobal/d86eeae889945666197ce30e7c73f67e to your computer and use it in GitHub Desktop.
如何让 Mac 终端走 SS 代理
# 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