[X-Unix] Altering .bashrc in bash to add to $PATH
Brian P. Minnebo
brian at minnebo.net
Thu Jan 8 09:22:02 PST 2004
Eugene writes:
> >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).
>
Robert writes
> As shown above, I only have .bash* files and the .bash files are the ones being created and modified.
>
> Any other ideas?
As Eugene mentions above, try renaming .bashrc:
$ mv .bashrc .bash_profile
On my (panther) system, I've always had to use .bash_profile. For instant gratification, you can say:
$ . ./.bash_profile
You won't know if it worked though, until you pop open some new Terminal windows.
Brian
--
More information about the X-Unix
mailing list