home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3952 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  909 b 

  1. Path: sparky!uunet!bonnie.concordia.ca!ccu.umanitoba.ca!mona.muug.mb.ca!rhoro
  2. From: rhoro@muug.mb.ca (Rick Horocholyn)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Need help putting PWD in PROMPT
  5. Message-ID: <1992Sep14.023706.6385@muug.mb.ca>
  6. Date: 14 Sep 92 02:37:06 GMT
  7. References: <1992Sep8.152514.24851@orlith.bates.edu> <1992Sep13.154528.3369@muug.mb.ca>
  8. Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada
  9. Lines: 12
  10.  
  11. In <1992Sep13.154528.3369@muug.mb.ca> rhoro@muug.mb.ca (Rick Horocholyn) writes:
  12.  
  13. In <1992Sep8.152514.24851@orlith.bates.edu> pbeach@abacus.bates.edu (Preston Beach) writes:
  14. >  I want to get my prompt to give my current working directory all the time.
  15.  
  16. If you use pushd/popd at all, you'll also want to set aliases for them too:
  17.  
  18. alias cd 'cd \!*; set prompt = "\! $cwd> "
  19. alias pushd 'pushd \!*; set prompt = "\! `pwd`> "'
  20. alias pop 'popd; set prompt = "\! `pwd`> "'
  21.  
  22. Rick.
  23.