home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10862 < prev    next >
Encoding:
Text File  |  1992-09-09  |  844 b   |  29 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!news.univie.ac.at!vm.univie.ac.at!E2311DAA
  3. From: E2311DAA@vm.univie.ac.at
  4. Subject: Re: Directory Name in Unix Prompt
  5. Message-ID: <1992Sep9.195812.14683@newssrv.edvz.univie.ac.at>
  6. Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
  7. Nntp-Posting-Host: helios.edvz.univie.ac.at
  8. Organization: University of Vienna
  9. Date: Wed, 9 Sep 1992 20:40:09 GMT
  10. Lines: 17
  11.  
  12.  
  13. try following in .cshrc on SVR4
  14.  
  15. set cwd=`pwd`# if home-directory is symbolic link
  16. set machname=`uname -n`
  17. set subprompt='$' # or what you like
  18. set prompt="${subprompt} ${machname} ($$) ${user} \! ${cwd}\
  19. ${subprompt} "
  20.  
  21. result should be :
  22.  
  23. $ myhost (864) myloginname 12 /home/myloginname
  24. $ _
  25.  
  26. where 864 is the process-number of the csh
  27.        12 is the current event-number (omit \! if not supported by your csh)
  28.  
  29.