home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / misc / volume03 / yacshppt < prev   
Encoding:
Internet Message Format  |  1991-08-27  |  1.1 KB

  1. Path: uunet!husc6!necntc!ncoast!allbery
  2. From: smith@cos.com (Steve Smith)
  3. Newsgroups: comp.sources.misc
  4. Subject: v03i054: Another csh prompt generator
  5. Message-ID: <2671@cos.com>
  6. Date: 15 Jun 88 22:01:15 GMT
  7. Sender: allbery@ncoast.UUCP
  8. Reply-To: smith@cos.com (Steve Smith)
  9. Organization: Corporation for Open Systems, McLean, VA
  10. Lines: 22
  11. Approved: allbery@ncoast.UUCP
  12.  
  13. comp.sources.misc: Volume 3, Issue 54
  14. Submitted-By: "Steve Smith" <smith@cos.com>
  15. Archive-Name: yacshppt
  16.  
  17. [Re: the Organization: line above -- say who?  --The "strain_home" alias has a
  18. small problem:  what happens if user "smith" cd's to /u/smith2?  I usually use
  19. a C version which I call "cpwd".  ++bsa]
  20.  
  21. alias strain_home       'sed "s?$home?~?"'
  22.  
  23. alias cd        'cd \!*;set prompt="{`(pwd|strain_home)`} "'
  24. alias pushd     'pushd \!*;set prompt="{`(pwd|strain_home)`} "'
  25. alias popd      'popd \!*;set prompt="{`(pwd|strain_home)`} "'
  26.  
  27. set prompt="{`pwd|strain_home`} "
  28.  
  29. I don't need to see the path to my home directory.
  30.  
  31. -- 
  32.                 -- Steve
  33. (smith@cos.com)    ({uunet sundc decuac hqda-ai hadron}!cos!smith)
  34. "Truth is stranger than fiction because fiction has to make sense."
  35.