记一次mac设置export环境变量之后,重启失效的解决方式
最近在研究kubebuilder和cobra,但是安装文件之后,命令一直找不到,当时是记得已经export二进制文件地址了下面是解决办法:首先在 /Users/HOME/.bash_profile 中声明,export xxxx,和命令行中声明一致然后找到下面文件 /Users/HOME/.zshrc 中文件中关联 .bash_profile在 .zshrc 文件中添加一句source ~/.bash_profile做一个.bash_profile关联保存关闭之后 source .zshr
原创
2021-07-03 10:14:02 ·
3242 阅读 ·
0 评论