Append [grid] to prompt when we think we're running from the grid.
[profile.git] / .profile.d / prompt.bashrc
index e6a8236..ca55679 100644 (file)
@@ -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.