macOS添加PATH环境变量

vi ~/.zshrc
export PATH="$PATH:需要添加的路径"
source ~/.zshrc

另外用ls看隐藏文件需要记得加上 -a 

ref:

https://superuser.com/questions/886132/where-is-the-zshrc-file-on-mac

原文地址:https://www.cnblogs.com/mrlonely2018/p/15304921.html