Oliver Lange said:
> brett holcomb wrote:
>> You could source ~/.bashrc from ~/.bash_profile.
>>
> What ?
>
> Sorry, Linux is still a riddle for me. Could you explain that
> in - lets say - one or two more lines ? :)

When you initiate an interactive session, the shell chooses an
initialization script to run based on how you started the session.
If you use bash, it may run ~/.bashrc or ~/.bash_profile. The
suggestion was to have ~./bash_profile run ~/.bashrc, so that you
get the results of ~/.bashrc when you spawned a shell that would
normally only run ~/.bash_profile. Personally, I like my suggestion
better, which is to symlink one to the other. Since you are using
~/.bashrc, I would delete ~/.bash_profile and link ~/.bash to it.
Like this:

mv ~/.bash_profile ~/.bash_profile.bkp
ln -s ~/.bashrc ~/.bash_profile

Then you get the same thing, no matter how you started the shell.
Also, you can edit either file and the other gets the edits, since
they are really both the same file, just with two names. For me this
works since I'm not taking any action in those scripts that depends
on how I started the shell. For some people, how they start the
shell matters, so this won't work for them.

-Eric

-- 
arctic bears - email and name services
25 email [EMAIL PROTECTED] CA$11.95/month
DNS starting at CA$3.49/month - domains from CA$25.95/year
for details contact [EMAIL PROTECTED] or visit
http://www.arcticbears.com




--
[EMAIL PROTECTED] mailing list

Reply via email to