macaiyun0629
deepin
2021-08-31 08:16 修改profile还真不怕系统弄挂了,修改环境变量不一般修改~/.bashrc吗
Reply Like 2 View the author
修改profile还真不怕系统弄挂了,修改环境变量不一般修改~/.bashrc吗
修改环境变量后建议重启电脑使用
deepin开机默认不加载~/.profile,修改~/.profile是没用的。你可以选择修改/etc/profile或者/etc/environment。
建议加到 .bashrc,如果zsh的话是 .zshrc
建议加到 .bashrc,如果zsh的话是 .zshrc
.profile 是 sh 的原始配置文件 (bash 可能会读但不一定去读)
.bash_profile 才是 bash 的原始配置文件。
建议加到 .bashrc,如果zsh的话是 .zshrc
.profile 是 sh 的原始配置文件 (bash 可能会读但不一定去读)
.bash_profile 才是 bash 的原始配置文件。
这 deepin 的论坛属实有毒
Popular Ranking
ChangePopular Events
More
在deepin下用于开发goland编程。配置好环境变量,一会就失效。source .profile 生效go env配置环境后一切正常,一会,go的配置都用不了