home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!news
- From: popaul@cs.mcgill.ca (Paul TERRAY)
- Newsgroups: comp.unix.shell
- Subject: Re: Novice Unix user help
- Message-ID: <BzD5yp.B2H@cs.mcgill.ca>
- Date: 16 Dec 92 17:59:13 GMT
- References: <101787@netnews.upenn.edu>
- Sender: news@cs.mcgill.ca (Netnews Administrator)
- Reply-To: popaul@binkley.cs.mcgill.ca
- Organization: SOCS, McGill University, Montreal, Canada
- Lines: 20
-
- In article <101787@netnews.upenn.edu> ericj@eniac.seas.upenn.edu (Eric J
- Reiter) writes:
- > Can anyone tell me how I can change my prompt to display what directory I am
- > in; i.e. like DOS set prompt=$p$g ?
- As you have tcsh (thanks to finger :) ) you have to patch your cd command with
- an alias in your .cshrc (or put all your alias in a .alias file and put a
- "source .alias" in your .cshrc). The alias look like :
- alias cd 'cd \!*; set prompt="[`hostname`][$cwd] "'
-
- That will do it. Next time, say what shell you're using so I will not need to
- do a finger... (BTW, beautiful .plan)
-
- Pauly prompt to display what directory I am
- > in; i.e. like DOS set prompt=$p$g ?
- As you have tcsh (thanks to finger :) ) you have to patch your cd command with
- an alias in your .cshrc (or put all your alias in a .alias file and put a
- "source .alias" in your .cshrc). The alias look like :
- alias cd 'cd \!*; set prompt="[`hostname`][$cwd] "'
-
- That will do it. Next time, say what shell you're using so I will
-