From: Iain Patterson Date: Tue, 8 Jul 2008 12:43:37 +0000 (+0000) Subject: Append [grid] to prompt when we think we're running from the grid. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=31192e260dfbbee3487b6f0623c70b516149743a;p=profile.git 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 --- 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.