Current directory in the ksh prompt?

Alex Martelli alex at am.sublink.org
Sun May 5 10:24:35 AEST 1991


mju at 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 at cadlab.sublink.org, (home:) alex at am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; 
Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).



More information about the Comp.unix.shell mailing list