摘要: profile(/etc/profile)和bash_profile的区别 profile(/etc/profile),用于设置系统级的环境变量和启动程序,在这个文件下配置会对所有用户生效。当用户登录(login)时,文件会被执行,并从/etc/profile.d目录的配置文件中查找shell设置。 阅读全文
posted @ 2020-06-10 14:47 保护wuli刚刚 阅读(1711) 评论(0) 推荐(0) 编辑
摘要: MacOS配置.bash_profile,重启终端后配置失效和MacOS .zshrc does not exist问题 场景 ​ 在Mac中配置golang环境变量更改GOPATH路径,在~/.bash_profile中配置新的路径,source ~/.bash_profile之后关掉终端,再用g 阅读全文
posted @ 2020-06-10 14:45 保护wuli刚刚 阅读(7815) 评论(0) 推荐(0) 编辑