Infiniture
V2EX  ›  问与答

在规则模式下,如何使用终端代理?

  •  
  •   Infiniture · Oct 9, 2020 · 1863 views
    This topic created in 2235 days ago, the information mentioned may be changed or developed.
    每次打开终端用 brew 的时候,必须是 clash 在全局模式下 才可以,有没有办法在规则模式下使用?
    4 replies  •  2020-10-09 18:00:39 +08:00
    newbieRenew
    newbieRenew
    Oct 9, 2020 via iPhone
    2
    大多数代理都提供了 Shell export command,复制,终端里粘贴一下就行了
    masker
    masker
    Oct 9, 2020 via Android
    3
    .bashrc or .zshrc
    export 一下就好了
    HarryQu
    HarryQu
    Oct 9, 2020
    4
    vim ~/.bash_profile,add:

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


    source ~/.bash_profile


    话说你 brew 为什么不用镜像呢?

    https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1525 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:24 · PVG 00:24 · LAX 08:24 · JFK 11:24
    ♥ Do have faith in what you're doing.