Prompt for ksh

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Thu Oct 26 02:17:40 AEST 1989


You have to escape the $ so it's evaluated at display time.

	PS1='$PWD> '

My personal favorite is:
	PS!='${PWD#$HOME/}> '

which displays subdirectory only in my login directory, but full
pathname elsewhere. Nice to have on the screen if you are ready to do "rm *"

-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.unix.questions mailing list