Click to See Complete Forum and Search --> : .bash_profile question
kuber
08-05-2001, 05:44 PM
I installed qt libs so I can run qcad. I added some stuff to ~/.bash_profile to make it run. However, to run it I must run 'source ~/.bash_profile' everytime. Shouldn't things in this file automatically apply whenever you log in to a term?
Thanks
Linuxcool
08-05-2001, 10:04 PM
I'm not sure, but I believe that it should go into the ~/.bashrc file.
Dark Ninja
08-06-2001, 12:06 AM
For some good information on .bashrc and .bash_profile, you can visit this link here. The site was specifically designed for Mandrake users, but, in this case, it also applies to what you want to know.
BASH Information (http://www.mandrakeuser.org/docs/admin/ashell.html)
Well...maybe it's what you want to know. Who knows? :confused: Check it out. I hope you find it useful.
Dark Ninja
lsibn
08-06-2001, 12:20 AM
Originally posted by kuber:
<STRONG>I installed qt libs so I can run qcad. I added some stuff to ~/.bash_profile to make it run. However, to run it I must run 'source ~/.bash_profile' everytime. Shouldn't things in this file automatically apply whenever you log in to a term?
Thanks</STRONG>
.bash_profile is run when you login, from a login widget to a bash shell (for example, when you boot to a text prompt.) XFree86 may call it as well, depending on how it's set up. In order for the changes to take effect, either put it in .bashrc (bad idea, because .bashrc is run with EVERY new prompt... You'd be running those commands thousands of times when it's not necessary), OR log out COMPLETELY and login again. Either way, it should work.
PLBlaze
08-06-2001, 11:01 AM
Hmm... .bash_profile should be sufficient but somehow it is not.Create .bash_login file and put the same info in it as in .bash_profile...hope this helps.
teeitup
08-06-2001, 11:42 PM
(bad idea, because .bashrc is run with EVERY new prompt... You'd be running those commands thousands of
This would be false.
Examine your .bash_profile carefully. The .bash_profile might make a call to .bashrc. This call may commented out.
There is nothing wrong with expanding your .bashrc file. It gets read each time a new session is started not for each prompt.
Search for some how-tos on .bashrc and see the wide variety and complexity that can go into it.
Good Luck,