Prompt for ksh

Xuyong Liu liu at jhunix.HCF.JHU.EDU
Mon Oct 23 06:09:10 AEST 1989


Under the C shell, one can set the prompt to the current working
directory by using the following alias:
alias cd 'cd \!* ; set prompt = "$CWD: "'.

How can this be done under ksh?  I tried
alias cd='cd $1; PS1="$PWD: "
and it did not work.

Thanks for any help in advance.

liu at alpha.ece.jhu.edu
liu at jhunix.UUCP



More information about the Comp.unix.questions mailing list