[Kernel/Drive] 在deepin下用于开发goland编程。配置好环境变量,一会就失效
Tofloor
poster avatar
changzhaohui
deepin
2021-08-31 08:12
Author

在deepin下用于开发goland编程。配置好环境变量,一会就失效。source .profile  生效go env配置环境后一切正常,一会,go的配置都用不了

Reply Favorite View the author
All Replies
macaiyun0629
deepin
2021-08-31 08:16
#1

修改profile还真不怕系统弄挂了,修改环境变量不一般修改~/.bashrc吗

Reply View the author
BG7ZAG
deepin
2021-08-31 16:45
#2

修改环境变量后建议重启电脑使用

Reply View the author
lanxing0821
deepin
2021-09-01 01:48
#3

deepin开机默认不加载~/.profile,修改~/.profile是没用的。你可以选择修改/etc/profile或者/etc/environment。

Reply View the author
kittylang
deepin
2021-09-02 04:25
#4

建议加到 .bashrc,如果zsh的话是 .zshrc

Reply View the author
kittylang
deepin
2021-09-02 04:30
#5

建议加到 .bashrc,如果zsh的话是 .zshrc

.profile 是 sh 的原始配置文件 (bash 可能会读但不一定去读)

.bash_profile 才是 bash 的原始配置文件。

Reply View the author
kittylang
deepin
2021-09-02 04:31
#6
kittylang

建议加到 .bashrc,如果zsh的话是 .zshrc

.profile 是 sh 的原始配置文件 (bash 可能会读但不一定去读)

.bash_profile 才是 bash 的原始配置文件。

这 deepin 的论坛属实有毒

Reply View the author