ksh prompt
Robert Herrage
herrage at brchh107.BNR.CA
Thu Feb 28 08:39:04 AEST 1991
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'
More information about the Comp.unix.shell
mailing list