Dog Walker wrote:
I want to prepend a directory to my PATH in my $HOME/.bashrc and export the
result. But I only want it to happen once: iow, if a directory I want
prepended is already in the PATH, do not prepend it again.
Something like:
if "/home/dw/bin" not in $PATH ; then
PATH=/home/dw
On Saturday 26 February 2005 01:40 pm, you wrote:
> "Eric Bambach" <[EMAIL PROTECTED]> said:
> >On Saturday 26 February 2005 12:17 pm, you wrote:
> >> I want to prepend a directory to my PATH in my $HOME/.bashrc and export
> >> the result. But I only want it to happen once: iow, if a directory I
>
"Eric Bambach" <[EMAIL PROTECTED]> said:
>On Saturday 26 February 2005 12:17 pm, you wrote:
>> I want to prepend a directory to my PATH in my $HOME/.bashrc and export the
>> result. But I only want it to happen once: iow, if a directory I want
>> prepended is already in the PATH, do not prepend it
On Saturday 26 February 2005 12:17 pm, you wrote:
> I want to prepend a directory to my PATH in my $HOME/.bashrc and export the
> result. But I only want it to happen once: iow, if a directory I want
> prepended is already in the PATH, do not prepend it again.
>
> Something like:
>
>if "/home/d
I want to prepend a directory to my PATH in my $HOME/.bashrc and export the
result. But I only want it to happen once: iow, if a directory I want
prepended is already in the PATH, do not prepend it again.
Something like:
if "/home/dw/bin" not in $PATH ; then
PATH=/home/dw:$PATH
export
I want to prepend a directory to my PATH in my $HOME/.bashrc and export the
result. But I only want it to happen once: iow, if a directory I want
prepended is already in the PATH, do not prepend it again.
Something like:
if "/home/dw/bin" not in $PATH ; then
PATH=/home/dw:$PATH
export