shibiaoz / blog

blog with node express mongo
1 stars 0 forks source link

brew 源替换 & mac proxy #27

Open shibiaoz opened 4 years ago

shibiaoz commented 4 years ago

https://www.cnblogs.com/tp0829/p/Homebrew.html

如果2/3 没有对应的文件夹,就到对应路径,clone 上面对应到git 模块到本地即可

go 环境安装https://www.jianshu.com/p/79bdd20c46cf brew /brew-core/brew-cask/brew-brottles http://mirrors.ustc.edu.cn/help/homebrew-cask.git.html

shibiaoz commented 4 years ago

mac proxy 代理配置 https://juejin.im/post/6844903895550935053


$ vi ~/.zshrc 
2. add config to zshrc

alias proxy=" export http_proxy=socks5://127.0.0.1:1086; export https_proxy=socks5://127.0.0.1:1086; export all_proxy=socks5://127.0.0.1:1086; export no_proxy=socks5://127.0.0.1:1086; export HTTP_PROXY=socks5://127.0.0.1:1086; export HTTPS_PROXY=socks5://127.0.0.1:1086; export ALL_PROXY=socks5://127.0.0.1:1086; export NO_PROXY=socks5://127.0.0.1:1086;" alias unproxy=" unset http_proxy; unset https_proxy; unset all_proxy; unset no_proxy; unset HTTP_PROXY; unset HTTPS_PROXY; unset ALL_PROXY; unset NO_PROXY"

3. 

source ~/.zshrc