Prompt for ksh

Conor P. Cahill cpcahil at virtech.uucp
Wed Oct 25 11:07:32 AEST 1989


In article <3028 at jhunix.HCF.JHU.EDU>, liu at jhunix.HCF.JHU.EDU (Xuyong Liu) writes:
> alias cd='cd $1; PS1="$PWD: "

How about:	PS1="\$PWD: "

PS1 is re-parsed prior to each use, so the \$ will cause the PWD 
variable to be expanded at run time, as opposed to definition time.


-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list