3

iTerm/zsh 环境变量快速切换问题

 1 year ago
source link: https://www.v2ex.com/t/894033
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Terminal

iTerm/zsh 环境变量快速切换问题

  Oilybear · 4 小时 6 分钟前 · 233 次点击

Hi,各位 请教工具的用法,iTerm 支不支持快速开启一个配置了特定环境变量的 zsh shell 因为环境变量在 ~/.zshrc 中设置后是每次打开都生效的,但是在想可能环境变量设置多了是不是会互相干扰,比如:

  1. Tab1
    $ export PATH=$PATH:anaconda/Script
    $ which conda 
     out:path ...
    
  2. Tab2
    $ export PATH=$PATH
    $ which conda 
     out:no which conda in path
    

所以想请教各位 iterm 支不支我预先配置好某种自定义的 tab 需要的环境变量,然后快速的打开。还是说以上的操作只能自己写一个 sh ,然后每次先 source 一下


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK