[X-Unix] Altering .bashrc in bash to add to $PATH

Robert Ameeti robert at ameeti.net
Thu Jan 8 14:10:00 PST 2004


> >>At 22:05 -0800 1/7/04, Robert Ameeti wrote:

Before:

> >>>echo $SHELL gives me /bin/bash
> >>>echo $PATH gives me /bin:/sbin:/usr/bin:/usr/sbin

I wanted $PATH to be:
/Library/mySQL/bin:/bin:/sbin:/usr/bin:/usr/sbin

It seems that Apple has changed the default shell from tcsh to bash as of Panther. Most users seem to be more familiar with tcsh.

bash uses the .bash_profile file in the ~ directory for path enhancement. So for me, the answer was:

echo 'export PATH=/Library/MySQL/bin:$PATH' >> ~/.bash_profile

Others will need to alter the above path enhancement as necessary to accomplish their goal.

Thanks to all for your pointers. It took a village to get this simple thing done.  lol

-- 
<><><><><><><><><><><><><><><><><><>
Robert Ameeti

And which dwarf are you?
<><><><><><><><><><><><><><><><><><>



More information about the X-Unix mailing list