Path: utzoo!attcan!uunet!jarthur!usc!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.sysv386 Subject: Re: ksh acting weird under SCO Unix Message-ID: <2248@sixhub.UUCP> Date: 7 Nov 90 02:03:42 GMT References: <35582@cup.portal.com> <8573@scolex.sco.COM> <35665@cup.portal.com> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 21 In article <35665@cup.portal.com> ts@cup.portal.com (Tim W Smith) writes: | The reason I wanted to use ksh was to be able to alias cd so that | I could have it set my prompt to include that name of my current | directory, since I usually have about 5 things going on in 5 | virtual terminals. You don't need an alias, just include the dirname in the prompt. Ex 1: PS1='${PWD} $ ' # just the dirname and a $ ex 2: PS1='${PWD#$HOME/}> ' # in and subdir of your HOME dir, just the subdir name, else full path. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me