home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8105 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!uwm.edu!rpi!psinntp!psinntp!intell!emcguire
  3. From: emcguire@intellection.com (Ed McGuire)
  4. Subject: Re: Setting prompt to two lines
  5. In-Reply-To: cels@stel.csir.co.za's message of Mon, 9 Nov 1992 06:05:43 GMT
  6. Message-ID: <EMCGUIRE.92Nov9144915@fuller.intellection.com>
  7. Sender: emcguire@intellection.com (Ed McGuire)
  8. Organization: Intellection, Inc.
  9. References: <cels.1.721289143@stel.csir.co.za>
  10. Date: Mon, 9 Nov 1992 20:49:15 GMT
  11. Lines: 22
  12.  
  13. In article <cels.1.721289143@stel.csir.co.za> cels@stel.csir.co.za (Chris Els) writes:
  14.  
  15.    I would like to set up the prompt in the .cshrc file (I am using the c-shell)
  16.    to display the current directory path, go to the next line, and sit and wait 
  17.    there for further instructions. The \n character does not work.
  18.  
  19. Here is an excerpt from my .cshrc.
  20.  
  21. ----- cut here -----
  22. alias cd 'cd \!* && reprompt'
  23. alias pushd 'pushd \!* && reprompt'
  24. alias popd 'popd && reprompt'
  25. alias reprompt 'set prompt = "\\
  26. \\!. ` hostname `:` dirs `\\
  27. % "'
  28. reprompt
  29. ----- cut here -----
  30. -- 
  31. Ed McGuire                   1603 LBJ Freeway, Suite 780
  32. Systems Administrator/       Dallas, Texas 75234
  33.  Member of Technical Staff   214/620-2100, FAX 214/484-8110
  34. Intellection, Inc.           <ed@intellection.com>
  35.