PDA

View Full Version : .bash_profile, important question




abhishekit
Jul 8, 2004, 09:12 PM
Hi

I was installing tomcat and struts. The problem is when I save the new path variable in .bash_profile, and then goto prefs of terminal to set it to use the file, I cant select it!! As shown in the picture, in the bottom most field, the select button cant find .bash_profile because it starts with '.'
And I cant manually enter the path in the field, its disabled. :confused:
I would really appreciate any help.

Thanks



wrldwzrd89
Jul 8, 2004, 09:20 PM
Hi

I was installing tomcat and struts. The problem is when I save the new path variable in .bash_profile, and then goto prefs of terminal to set it to use the file, I cant select it!! As shown in the picture, in the bottom most field, the select button cant find .bash_profile because it starts with '.'
And I cant manually enter the path in the field, its disabled. :confused:
I would really appreciate any help.

Thanks
You don't have to do this. The Terminal SHOULD be smart enough to detect the change and use the new file. However, I've also had trouble getting Terminal to recognize .bash_profile. If you put the line(s) in .profile instead, it should work just fine (it does for me, anyway). You can simply use the mv (or cp) command to move/copy .bash_profile to .profile.

abhishekit
Jul 8, 2004, 09:38 PM
EDIT: you were correct. It did automatically take the .bash_profile. Actually I had done some error in the PATH declaration, so it was taking it and still giving the error.
Thanks a lot for your speedy help.:)

cheers