shell specific prompt

currently, I set my prompt in my .cshrc file as:
set prompt = "%B%h %m %P %/ \n% "

I have to use certain shells for some specific tasks and would like to set different prompts depending on the type of shell that I am using. Any advice?

Thanks

Just have a if/then/else or case statement on the $SHELL variable. Then you can set your PS1 value accordingly.

Cheers,

Keith

When I launch a new shell from the command line, the value of my $SHELL variable does not change so I am not able to do an if statement on it.

the only way i know to set this up is to set the prompt for each shell using the specific shell's initialization files --- .login & .cshrc for csh, .profile and .kshrc for ksh, .bashrc for bash, etc. ...