《macos系统问题》 bash_profile和zshrc的区别
bash_profile,再执行 source ~/.bash_profile,只在当前窗口生效,但关闭当前终端窗口 或者 mac关机重启后不会再生效。所以一般会在~/.zshrc中添加source ~/.bash_profile,以确保.bash_profile中的修改永久生效。.zshrc ,再执行 source ~/.zshrc,这是永久生效的,mac每次启动会自动执行source ~/.zshrc。最近想玩golang,所以遇到了go语言的环境变量配置问题,记录一下防止以后踩坑~
原创
2023-04-11 10:01:00 ·
1800 阅读 ·
1 评论