home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news.mit.edu!jdell
- From: jdell@indira.mit.edu (John Ellithorpe)
- Subject: Re: Need help putting PWD in PROMPT
- In-Reply-To: rhoro@muug.mb.ca's message of 14 Sep 92 02:37:06 GMT
- Message-ID: <JDELL.92Sep15105545@indira.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: indira.mit.edu
- Organization: Massachusetts Institute of Technology
- References: <1992Sep8.152514.24851@orlith.bates.edu> <1992Sep13.154528.3369@muug.mb.ca>
- <1992Sep14.023706.6385@muug.mb.ca>
- Date: Tue, 15 Sep 1992 15:55:45 GMT
- Lines: 33
-
- On 14 Sep 92 02:37:06 GMT, rhoro@muug.mb.ca (Rick Horocholyn) said:
-
- > In <1992Sep13.154528.3369@muug.mb.ca> rhoro@muug.mb.ca (Rick Horocholyn) writes:
- > In <1992Sep8.152514.24851@orlith.bates.edu> pbeach@abacus.bates.edu (Preston Beach) writes:
- >> I want to get my prompt to give my current working directory all the time.
- > If you use pushd/popd at all, you'll also want to set aliases for them too:
- > alias cd 'cd \!*; set prompt = "\! $cwd> "
- > alias pushd 'pushd \!*; set prompt = "\! `pwd`> "'
- > alias pop 'popd; set prompt = "\! `pwd`> "'
-
- If you are using tcsh (or some other flavor of shell), you can just set the
- prompt to whatever you want:
-
- % set prompt='%/>'
-
- and it give you:
-
- /home/maggie/jdell>
-
- for the prompt. Tcsh also lets you specify hostnames, times, dates, current
- history event numbers. Also underlining and boldfacing, if supported. I'm
- using Tcsh 6.02.
-
- John
-
- --
-
- ===============================================================================
- John Ellithorpe | Internet: jdell@maggie.mit.edu
- Dept. of Physics, Rm 26-349 | Phone : (617) 253-3074 Office
- Massachusetts Institute of Technology | (617) 253-3072 Lab
- Cambridge, MA 02139 | (617) 236-4910 Home
- ===============================================================================
-