Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rutgers!cmcl2!adm!xadmx!mchinni@ardec.arpa From: mchinni@ardec.arpa (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.unix.questions Subject: Re: Bourne Shell Question? Message-ID: <18289@adm.BRL.MIL> Date: 2 Feb 89 15:40:25 GMT Sender: news@adm.BRL.MIL Lines: 25 Dan, Here is another idea. It is known to work in the BSD 4.3 environment. It MUST be put in your .profile. Once it has been setup (in .profile and .profile executed as if at login time), use "c" instead of "cd". c() { case $# in 1) cd $1;; *) cd $HOME;; esac PS1=`pwd`"> "; } c Example if `pwd` is /usr/sys, prompt will be "/usr/sys> ". /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Michael J. Chinni US Army Armament Research, Development, and Engineering Center User to skeleton sitting at cobweb () Picatinny Arsenal, New Jersey and dust covered terminal and desk () ARPA: mchinni@ardec.arpa "System been down long?" () UUCP: ...!uunet!ardec.arpa!mchinni /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/