这个文件是在登录时执行的,可是我在里面的设置没起作用。后来只能写在.bashrc里的。
请问为什么?
.bash_profile中的设置不起作用
-
- 帖子: 1038
- 注册时间: 2007-01-10 9:32
-
- 帖子: 1038
- 注册时间: 2007-01-10 9:32
-
- 帖子: 1318
- 注册时间: 2005-09-13 4:56
- 系统: Ubuntu Jammy Jellyfi
Re: .bash_profile中的设置不起作用
谁告诉你这个脚本是在登录时执行的?
-
- 帖子: 1038
- 注册时间: 2007-01-10 9:32
Re: .bash_profile中的设置不起作用
对于.bash_profile或.bash_login,不是登入时执行,那是什么时候,我就是奇怪,系统重起后里面的配置文件没起作用。funicorn 写了:谁告诉你这个脚本是在登录时执行的?
- 自由建客
- 帖子: 13468
- 注册时间: 2008-07-30 23:21
- 系统: Debian stable AMD64
Re: .bash_profile中的设置不起作用
控制台登录执行 ~/.bash_profile,但 X 登录则不然。试试 ~/.xprofile。
-
- 帖子: 1038
- 注册时间: 2007-01-10 9:32
Re: .bash_profile中的设置不起作用
没用,我把全部配置写.bashrc里了。自由建客 写了:控制台登录执行 ~/.bash_profile,但 X 登录则不然。试试 ~/.xprofile。
难道bash在这两年里把这功能改了?
- 自由建客
- 帖子: 13468
- 注册时间: 2008-07-30 23:21
- 系统: Debian stable AMD64
Re: .bash_profile中的设置不起作用
drongh, X 登录根本就不打开登录 shell。
- soli
- 帖子: 34
- 注册时间: 2008-01-09 13:30