Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!aplcen!jhunix!liu From: liu@jhunix.HCF.JHU.EDU (Xuyong Liu) Newsgroups: comp.unix.questions Subject: Prompt for ksh Summary: set prompt to $PWD under ksh Message-ID: <3028@jhunix.HCF.JHU.EDU> Date: 22 Oct 89 20:09:10 GMT Reply-To: liu@alpha.ece.jhu.edu (Xuyong Liu) Organization: The Johns Hopkins University - HCF Lines: 13 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@alpha.ece.jhu.edu liu@jhunix.UUCP