home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10626 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  712 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
  2. From: exumfox@exu.ericsson.se (Mike Fox)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Directory Name in Unix Prompt
  5. Message-ID: <1992Sep1.230753.3256@exu.ericsson.se>
  6. Date: 1 Sep 92 23:07:53 GMT
  7. References: <1992Sep1.201139.11787@wdl.loral.com>
  8. Sender: news@exu.ericsson.se
  9. Reply-To: exumfox@exu.ericsson.se
  10. Organization: Ericsson Network Systems
  11. Lines: 7
  12. Nntp-Posting-Host: s11a08.exu.ericsson.se
  13.  
  14.  
  15. I would suggest the .cshrc file instead of .login
  16. and add these lines.
  17.  
  18. set HOST=`hostname`  
  19. alias   cd           '\!:0-$; set_prompt'
  20. alias   set_prompt   'set prompt = "'$HOST':${cwd} % "'
  21.