ksh acting weird under SCO Unix
Wm E. Davidsen Jr
davidsen at sixhub.UUCP
Wed Nov 7 13:03:42 AEST 1990
In article <35665 at cup.portal.com> ts at 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 at 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
More information about the Comp.unix.sysv386
mailing list