Pretty prompt

Patrice LUTMANN lutmann at geocub.UUCP
Mon Jun 17 22:46:05 AEST 1991


In article <962 at lhdsy1.chevron.com> yzarn at lhdsy1.chevron.com (Philip Yzarn de Louraille) writes:
>In article <1991Jun13.163726.10604 at umiami.ir.miami.edu> rfrost at umiami.ir.miami.edu writes:
>>How do I get a prompt which will always show the current directory.
>>     /usr/rfrost>
>set prompt="`echo $cwd`>"
>alias cd      cd \!\* \; set prompt='"`echo $cwd`>"'
>alias pushd   pushd \!\* \; set prompt='"`echo $cwd`>"'
>alias popd    popd \!\* \; set prompt='"`echo $cwd`>"'

    Why not just:
	alias cd    cd    \!* \; set prompt='"$cwd>"'
	alias pushd pushd \!* \; set prompt='"$cwd>"'
	alias popd  popd  \!* \; set prompt='"$cwd>"'

					[Pat]



More information about the Comp.unix.ultrix mailing list