添加移除iTerm2终端设置代理

本文最后更新于 49 天前, 如有失效请评论区留言.

最近调整一下家里的网络架构,默认将macOS也挂到旁路由下

添加

比较简单,常用的工具都可以自动添加。

也可以手动添加

export http_proxy=http://127.0.0.1:7890
export https_proxy=$http_proxy

移除

  1. 检查是否有相关变量echo $http_proxy
  2. 手动关闭unset https_proxy,unset http_proxy
  3. 通常在~/.zshrc文件里,比较特殊的在~/.zprofile(我的就是在这里😂)

Sponsor

Like this article? $1 reward

Comments

According to the relevant laws and regulations of the People's Republic of China, the comment function of the current website has been disabled. If you need to comment, please visit ysicing.me, but the comments still need to be reviewed by AI.