当前位置:   article > 正文

mac 找.zshrc文件,解决: command not found_mac zshrc

mac zshrc

Find the '.zshrc' file:

  • Open Terminal.  (打开终端)
  • Type open ~ to access your home directory.  (输入open ~)
  • Press Cmd + Shift + . to show the hidden files in Finder.  (按command +shift + .)
  • Locate the .zshrc. (在列表中找到.zshrc 用记事本打开)

Edit the '.zshrc' file:(编辑.zshrc后保存)

  • add: source /Users/_user_Name_/.bash_profile to the top of the file (where _user_Name_ stands for your user.(source /Users/YOUUSERNAME/.bash_profile或者source ~/.bash_profile)       

  • export PATH=~/.npm-global/bin:$PATH(export PATH=/user/local/share/npm/bin:$PATH)

  • Save the file, and close the Terminal window.(保存文本并退出终端)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/825206?site
推荐阅读
相关标签
  

闽ICP备14008679号