On Tue, 24 Nov 2009 12:19:45 +0100, Ruben de Groot <[email protected]> wrote:
> In tcsh there's the REMOTEHOST env variable. Don't know about bash.
> Something like:
> 
> set prompt = "${us...@${host}>${REMOTEHOST}> "
> 
> should do it?

That's an approach, it it makes the "upper stage" visible;
it works in bash, too.

For interactive shells, I would include a test if $REMOTEHOST
is set, and if it is, then it's a SSH session, so a different
prompt has to be set.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to