更新时间:2023-11-20 10:43:04
类似于上述评论中提到的 bjhaid :
Like bjhaid mentioned in the comments above:
之所以会这样,是因为您必须将PATH
添加到~/.zshrc
文件中.
This is happening because you must add your PATH
to your ~/.zshrc
file.
在~/.zshrc
中,应添加以下行:
export PATH=$PATH:/usr/local/go/bin
然后您应该为您的.zshrc
文件提供来源:
you should then source you .zshrc
file:
. ~/.zshrc