186******39
deepin
2018-01-26 16:14 https://bbs.deepin.org/post/152263
这取决于 /etc/profile 的具体实现,不是 profile.d目录下所有的东西都会执行,得以 .sh 结尾才行。 ...
了解,多谢
Reply Like 0 View the author
https://bbs.deepin.org/post/152263
这取决于 /etc/profile 的具体实现,不是 profile.d目录下所有的东西都会执行,得以 .sh 结尾才行。 ...
Popular Events
More
我以为是/etc/environment,在里面这样设置的
export PATH=$PATH:/home/idn-lee/.config/composer/vendor/bin
在自己的用户下source了下,美滋滋。
之后重启,结果卡在启动界面了,简直被吓屎,然后tty2发现,路径真的被设置成$PATH:/home/idn-lee/.config/composer/vendor/bin,一个字没改……
很疑惑为什么他不解析$PATH呢?
搜索论坛发现可以更改/etc/profile,然后改了以后发现root用户压根也不用这个配置。难道我只能在用户各自的.bashrc中分别设置吗?