.bash_profile失效了,咋办

.bash_profile失效了,咋办

偶的.bash_profile原来设的export很管用,

可现在失效了,

每次登录后得重新export。

不知.bash_profile咋工作的,
是不是有个.bashrc,你把配置加在这个里边看是否可行,或者/etc/profile
改/etc/profile是可以,不过偶想知道~/.bash_profile咋不工作啦
.bashrc
有没有这个文件,如果有,你改改这个文件试试
如果改这个行的话,说明由于这个文件的存在是.bash_profile失效
well, ~/.bash_profile is read and the command in it executed by bash everytime you login to the system,in other words,is read and executed by the login shell. ~/.bashrc is read and executed by the subshell.
in short,/etc/profile and /etc/profile are world-wide, ~/.bash_profile and ~/.bashrc are personal-wide