Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!ncar!gatech!usenet.ins.cwru.edu!agate!stanford.edu!rutgers!modus!gear!am!alex From: alex@am.sublink.org (Alex Martelli) Newsgroups: comp.unix.shell Subject: Re: Current directory in the ksh prompt? Message-ID: <1991May05.002435.213@am.sublink.org> Date: 5 May 91 00:24:35 GMT References: Organization: Premiata Famiglia Martelli & Figli Lines: 14 mju@mudos.ann-arbor.mi.us (Marc Unangst) writes: ... :directory. The "unalias cd; cd $1; alias cd=_cd" part could be :replaced with "\cd $1", I believe; otherwise, this answer is almost :perfect. One little tidbit to push it 0.0001 nearer to perfection: change that $1 to $*, so you don't lose the ksh feature to say, e.g., 'cd lib spool' to change from /usr/lib/uucp to /usr/spool/uucp... -- Alex Martelli - (home snailmail:) v. Barontini 27, 40138 Bologna, ITALIA Email: (work:) martelli@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).