PS1 change (ksh)

Robert Viduya robert at gitpyr.UUCP
Sun Mar 24 06:52:31 AEST 1985


> If you want the cwd in the prompt, just make a new function called, say, ch:
> 
> ch()
> {
> 	if cd $1
> 	then PS1="[`pwd`] "
> 	fi
> }
> 
The problem with this is that if you're used to the "cd" command, you have
to spend some time acclimating to the new "ch" command.  Your prompt can
lie if you call "cd" directly (without going through "ch").

			robert
-- 
Robert Viduya
Georgia Institute of Technology

...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert
...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert



More information about the Comp.unix.wizards mailing list