把 bash shell 中.bash_profile 全部環境變量加入zsh shell里就好
第一步
在終端執行
open ~/.zshrc
第二步
找到 "# User configuration"
在其下面添加下面內容
source ~/.bash_profile
如果沒有'# User configuration',就直接把上面內容添加到 ~/.zshrc 里面
第三步
在終端里執行
source ~/.zshrc
把 bash shell 中.bash_profile 全部環境變量加入zsh shell里就好
第一步
在終端執行
open ~/.zshrc
第二步
找到 "# User configuration"
在其下面添加下面內容
source ~/.bash_profile
如果沒有'# User configuration',就直接把上面內容添加到 ~/.zshrc 里面
第三步
在終端里執行
source ~/.zshrc
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。