Well, many moons ago, I wanted to do a similar thing, only I needed 
something different: I use a lot of shell variables to 'shortcut' to here 
and there in the system [$temp, $perl, $scripts, $news, etc].  What I 
wanted was that *IF* my current PWD had a prefix that matched some 
variable in my environment, THEN: I wanted to have my prompt look like:
   $perl/newclient
or
   $scripts/backup/
or
   $scripts/backup/tapewriter

or the like...  This was in the before-there-was-Perl days, and I DID 
find a way to do it [I wrote a little C program to do the job]...  Might 
be an interesting exercise to do in Perl, it isn't all that hard [but 
might be tricky to get down to golf-style <72char form, [what with 
looping through %ENV looking for matching prefixes, etc...]

  /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:[EMAIL PROTECTED]     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

Reply via email to