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