Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!rutgers!rochester!ritcv!ccs6277
From: ccs6277@ritcv.UUCP (Clifford C. Skolnick)
Newsgroups: comp.unix.wizards,comp.unix.questions
Subject: Re: The whole prompt string thing (was: PS1 and the bourne shell...)
Message-ID: <7@ritcv.UUCP>
Date: Sun, 6-Dec-87 13:37:20 EST
Article-I.D.: ritcv.7
Posted: Sun Dec  6 13:37:20 1987
Date-Received: Fri, 11-Dec-87 06:23:34 EST
References: <279@caus-dp.UUCP> <1311@puff.wisc.edu> <137@anumb.UUCP> <305@caus-dp.UUCP> <3075@megaron.arizona.edu>
Reply-To: ccs6277@ritcv.UUCP (PUT YOUR NAME HERE)
Organization: Rochester Institute of Technology, Rochester, NY
Lines: 23
Xref: mnetor comp.unix.wizards:5878 comp.unix.questions:5228


Here is how I've been putting my path name into my command prompt for
my Unix PC in Korn Shell


------------- lines in .kshrc ---------

SYSTEM=`system`

PS1="$SYSTEM `pwd` [!]: "

alias oldcd=cd
alias cd=newcd

newcd() {
 oldcd $*
 PS1="$SYSTEM `pwd` [!]: "
}
------------- end of .kshrc  ----------

 Cliff Skolnick
 ...rochester!ritcv!ccs6277
 ...rochester!ritcv!ritcsh!sabin!lazlo!{root|ccs}