home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
- From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
- Subject: Re: pwd
- Message-ID: <s1110238.725793281@giaeb>
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University, Melb., Australia.
- References: <1992Dec31.022725.13611@netcom.com>
- Date: Thu, 31 Dec 1992 09:14:41 GMT
- Lines: 20
-
- kasajian@netcom.com (Kenneth Kasajian) writes:
-
- >Hello. I'm using tcsh as my shell. I was wondering.. how do I get
- >the prompt to show my local directory like in dos PROMPT $P$G
- >I've tried:
- >prompt `pwd`
- >but the prompt is set to the directory name at the time of the setting
- >and doesn't change when change directories. How do I get it to
- >execute everytime. can I overwrite 'cd' ?
-
- Try adding an alias or two to your .cshrc file.
-
- # Set up sensible prompt and a few alii
- alias cd 'cd \!* ; set prompt = "$cwd> "'
- alias pop 'popd \!* ; set prompt = "$cwd> "'
- alias pushd 'pushd \!* ; set prompt = "$cwd> "'
- cd .
-
- Lee Hollingworth
- s1110238@giaeb.cc.monash.edu.au
-