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: <341@hsi86.hsi.UUCP> Date: 20 Mar 89 15:42:08 GMT References: <5582@ncsugn.ncsu.edu> Reply-To: derek@hsi86.UUCP (Derek Lee-Wo) Organization: Health Systems Intl., New Haven, CT. Lines: 13 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`] "' -- +-----------------------------------------------------------------------------+ |Derek Lee-Wo, Health Systems International, New Haven, CT 06511. | |E-mail address :- derek@hsi.com ...!yale!hsi!derek | +-----------------------------------------------------------------------------+