Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchh107!herrage From: herrage@brchh107.BNR.CA (Robert Herrage) Newsgroups: comp.unix.shell Subject: ksh prompt Message-ID: <1772@brchh104.bnr.ca> Date: 27 Feb 91 21:39:04 GMT Sender: news@brchh104.bnr.ca Reply-To: herrage@brchh107.BNR.CA Organization: BNR Lines: 14 I have the following defined in my .profile: alias prompt="PS1=\"--> \`pwd\` <-- hostname> \"" This sets my prompt to put my current directory on one line and my prompt below it on the next line. I also want to have an alias (or something) for "cd" so that when I use "cd" to change directories, my prompt will update accordingly. The problem is that when I alias "cd", ksh doesn't parse for any imbedded aliases. Therefore, alias cd='cd $*;prompt'