ksh prompt
Scott P Nichols
nichols at en.ecn.purdue.edu
Fri Mar 1 04:37:58 AEST 1991
In article <1772 at brchh104.bnr.ca> herrage at brchh107.BNR.CA writes:
>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'
>
How about...
PS1='\!]$PWD>'
...works for me!
Scott
--
O- /\
|\ /\/vv\
/vv\ \ __Insight from Oregon...Scott P. Nichols
_____/ \ ~~~~~~~~~~~~~~~~ (nichols at en.ecn.purdue.edu)
More information about the Comp.unix.shell
mailing list