[comp.unix.questions] How to redefine prompt - Thanks for the solutions!

hooverm@sysjj.mdcbbs.com (SQUID 6 on the DARK side) (11/02/90)

Thanks to Roland (magnificat.cpat.umich.edu.roland) for the solution to
my problem.

Here's a hacked version of what he sent me.

=======================================

# Mark's .cshrc
if (${?prompt}) then
    set host=`hostname`
    set prompt="! ${host}> $cwd % "
endif
alias cd 'chdir \!* ; set prompt = "! ${host}> $cwd % "'
alias pd 'pushd !\* ; set prompt = "! ${host}> $cwd % "'
alias ud 'popd !\* ; set prompt = "! ${host}> $cwd % "'