Newlearnerの自留地
60K subscribers
13.6K photos
43 videos
63 files
10.4K links
🆕 不定期推送 IT 相关资讯,欢迎关注!

👥 博客群&投稿群&交流群: @NewlearnerGroup

📩 投稿请私信 @newlearner_pm_bot

🔍 频道内容关键词索引 Bot: @newlearner_search_bot

* 未经授权或标注来源,不得转载本频道内容
Download Telegram
#iTerm #macOS

让终端iTerm2自动走系统代理

懒人大法好!

🔨 工具:iTerm2、ClashX

📚 原理:iTerm2 打开新窗口时自动执行 export命令(同理可以实现ssh连接

🗝 步骤:

1. 运行ClashX 中 Copy Shell Command
2. 将复制到的内容粘贴到iTerm 的 Send Text at Start 处 (见图片

🧷 默认的 export命令

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7891

# 7890 对应 ClashX 的 Http 代理端口
# 7891 对应 ClashX 的 Sock5 代理端口

首发于 @GoogoCC 👏 欢迎关注

📘 关联阅读:在 Mac 终端下配置 Proxy

频道:@NewlearnerChannel