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

Robert Ameeti robert at ameeti.net
Thu Jan 8 05:34:47 PST 2004


>On Wed, Jan 07, 2004 at 10:05:11PM -0800, Robert Ameeti wrote:
>:
>: echo $SHELL gives me /bin/bash
>: echo $PATH gives me /bin:/sbin:/usr/bin:/usr/sbin
>:
>: I am wanting to add /Library/MySQL/bin to my path
>:
>: While in my home directory, I do pico .bashrc
>:
>: Pico opens with a single line that says:
>:
>: export PATH="$PATH:/Library/MySQL/bin"
>:
>: How far off am I in getting my PATH altered to include that additional
>: path? I am thinking that I am doing what I need to do but it doesn't
>: appear to be working.   :-(
>
>The line above looks right.  But the ~/.bashrc file needs to be executed.
>The easiest thing to do is to close your current Terminal window and open
>a new one.  If the new Terminal window does not get your new $PATH, then
>you need remove the line above from ~/.bashrc and insert it into either
>~/.profile or ~/.bash_profile (whichever one exists).

adsl-66-51-193-110:~ rameeti$ ls -A
.CFUserTextEncoding     .bashrc.save            Music
.DS_Store               Desktop                 Pictures
.Trash                  Documents               Public
.bash_history           Library                 Sites
.bashrc                 Movies

As shown above, I only have .bash* files and the .bash files are the ones being created and modified.

Any other ideas?

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

Happiness is not a state to arrive at, but a manner of traveling.

- Margaret Lee Runbeck
<><><><><><><><><><><><><><><><><><>



More information about the X-Unix mailing list