Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!mfci!hsi!derek From: derek@hsi.UUCP (Derek Lee-Wo) Newsgroups: comp.unix.questions Subject: Re: Getting UNIX prompt to display current directory Keywords: UNIX prompt directories pwd Message-ID: <342@hsi86.hsi.UUCP> Date: 20 Mar 89 15:44:57 GMT References: <5582@ncsugn.ncsu.edu> <341@hsi86.hsi.UUCP> Reply-To: derek@hsi86.UUCP (Derek Lee-Wo) Organization: Health Systems Intl., New Haven, CT. Lines: 17 In article <341@hsi86.hsi.UUCP> derek@hsi86.UUCP (Derek Lee-Wo) writes: >In article <5582@ncsugn.ncsu.edu> fristens@ncsugn.ncsu.edu (Brian Fristensky) writes: >>In MS-DOS there is a very easy way to get the current directory displayed as >>part of the prompt (prompt $p). In UNIX, there is certainly no >>straightforward way to do this. Can anyone think of a tricky way? My : :This works only in BSD. +-------------->^^^^ : | alias cd 'cd \!*;set prompt="[`/bin/pwd`] "' : | | Sorry, I meant to say csh in my previous posting. -- +-----------------------------------------------------------------------------+ |Derek Lee-Wo, Health Systems International, New Haven, CT 06511. | |E-mail address :- derek@hsi.com ...!yale!hsi!derek | +-----------------------------------------------------------------------------+