From 31192e260dfbbee3487b6f0623c70b516149743a Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 8 Jul 2008 12:43:37 +0000 Subject: [PATCH] Append [grid] to prompt when we think we're running from the grid. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@114 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .profile.d/prompt.bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.profile.d/prompt.bashrc b/.profile.d/prompt.bashrc index e6a8236..ca55679 100644 --- a/.profile.d/prompt.bashrc +++ b/.profile.d/prompt.bashrc @@ -12,6 +12,12 @@ if [ ! -z "$SSH_FORWARDED" ]; then fi fi +# Unscientific check for grid jobs. +case ${SSH_CLIENT##* } in + 22|2222);; + *) SSH_FORWARDED="$SSH_FORWARDED [grid]" +esac + info="$HOSTNAME$SSH_FORWARDED" # Check for vim. -- 2.20.1