home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!brtph560!bnr.ca!esh
- From: esh@bnr.ca (Jim Eshelman P910)
- Subject: Re: Novice Unix user help
- Message-ID: <1992Dec14.214005.15179@brtph560.bnr.ca>
- Sender: news@brtph560.bnr.ca (Usenet News)
- Organization: Bell-Northern Research, BNR-RTP
- References: <101787@netnews.upenn.edu>
- Date: Mon, 14 Dec 1992 21:40:05 GMT
- Lines: 18
-
- 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 ?
- |>
- If you are in CSH, you can try:
-
- alias cd 'cd \!*; set prompt = "{`pwd`}<\! >"'
-
- but note that most of the gurus out there will likely ignore your question
- since this kind of info is in the Frequently Asked Questions (FAQ) files
- which were posted just last week. Get a copy & study before venturing here
- as a novice -- and provide more detail on the system you are using.
- --
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Jim Eshelman || esh@brtph419.bnr.ca || Moderation in all things --
- BNR INC. || (919) 991-7497 || including TEMPERANCE!
- RTP, NC 27709 || ESN 294-7497 || (my opinions are my own, eh?)
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-