美文网首页
zsh: command not found: XXX

zsh: command not found: XXX

作者: 晓蜻蜓 | 来源:发表于2019-12-19 18:42 被阅读0次

原因:
bash_profile里的环境变量在zsh shell里没法执行


解决步骤

  • 终端执行
    open ~/.zshrc
  • 在.zshrc里加入
    # User configuration
    source ~/.bash_profile
  • 让新添加的内容生效执行
    source ~/.zshrc

相关文章

网友评论

      本文标题:zsh: command not found: XXX

      本文链接:https://www.haomeiwen.com/subject/gxrvnctx.html