macOS添加PATH环境变量

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

 

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

 

ref:

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

posted @ 2021-09-17 15:37  略略略——  阅读(362)  评论(0编辑  收藏  举报