What I've always done is keep a little script around that
constructs the path from a more easily edited list. When
you're doing a lot of development against some sort of
application framework(s), your path tends to get kinda 
nasty.

So you put a script in your home directory (or your 
$HOME/bin.sh or wherever you like) called something like
GETPATH. It should look something like this:

#!/bin/sh

pathdirs='
  $HOME/bin.sh
  $HOME/bin
  /usr/local/bin
  /usr/bin
  /usr/sbin
  /bin
  /sbin
  /what/ever/you/want
'

set $pd
PATHSTR=$1
shift
for pd in "$@"; do
  PATHSTR="$PATHSTR:$pd"
done

echo $PATHSTR
#end

You can then run that script from a little shell function or alias
or whatever. I just find it a lot easier to edit the vertical list
of directories than a big wad of colon-separated pathnames.



-----Original Message-----
From: Jake McHenry
To: redhat
Sent: 5/7/00 9:10 AM
Subject: Re: How do I edit my PATH?


Your path environment is set in your *.profile located in each users
directory. just edit this file and somewhere you should see PATH=
just add to this whatever you want

jake

On Sun, 7 May 2000, John P. Verel wrote:

> I'm running Red Hat 6.2  I want to edit my path environment and am
> unclear where to go to do it, unable to find appropriate documentation
> on this.  Can someone please advise?  Thank you.
> 
> John
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 
> 

Jake McHenry
[EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to