home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5062 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!brtph560!bnr.ca!esh
  3. From: esh@bnr.ca (Jim Eshelman P910)
  4. Subject: Re: Novice Unix user help
  5. Message-ID: <1992Dec14.214005.15179@brtph560.bnr.ca>
  6. Sender: news@brtph560.bnr.ca (Usenet News)
  7. Organization: Bell-Northern Research, BNR-RTP
  8. References:  <101787@netnews.upenn.edu>
  9. Date: Mon, 14 Dec 1992 21:40:05 GMT
  10. Lines: 18
  11.  
  12. In article <101787@netnews.upenn.edu>, ericj@eniac.seas.upenn.edu (Eric J Reiter) writes:
  13. |> Can anyone tell me how I can change my prompt to display what directory I am 
  14. |> in; i.e. like DOS set prompt=$p$g ?
  15. |> 
  16. If you are in CSH, you can try:
  17.  
  18.     alias  cd       'cd \!*; set prompt = "{`pwd`}<\! >"'
  19.  
  20. but note that most of the gurus out there will likely ignore your question
  21. since this kind of info is in the Frequently Asked Questions (FAQ) files
  22. which were posted just last week.  Get a copy & study before venturing here
  23. as a novice -- and provide more detail on the system you are using.
  24. -- 
  25. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  26. Jim Eshelman   || esh@brtph419.bnr.ca  ||   Moderation in all things --
  27. BNR INC.       ||      (919) 991-7497  ||     including TEMPERANCE!
  28. RTP, NC  27709 ||        ESN 294-7497  ||  (my opinions are my own, eh?)
  29. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  30.