Don't show from localhost.
authorIain Patterson <me@iain.cx>
Mon, 25 Aug 2008 10:35:25 +0000 (10:35 +0000)
committerIain Patterson <me@iain.cx>
Mon, 25 Aug 2008 10:35:25 +0000 (10:35 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@141 6be0d1a5-5cfe-0310-89b6-964be062b18b

.profile.d/prompt.bashrc

index 6357ac5..f874d59 100644 (file)
@@ -5,7 +5,7 @@
 
 SSH_FORWARDED=$(get_remote_ip -n)
 if [ ! -z "$SSH_FORWARDED" ]; then
-  if [ ! "$SSH_FORWARDED" = "62.189.242.202" -a ! "$SSH_FORWARDED" = "62.189.241.202" -a ! "$SSH_FORWARDED" = "193.128.72.68" ]; then
+  if [ ! "$SSH_FORWARDED" = "62.189.242.202" -a ! "$SSH_FORWARDED" = "62.189.241.202" -a ! "$SSH_FORWARDED" = "193.128.72.68" -a ! "$SSH_FORWARDED" = "localhost" ]; then
     SSH_FORWARDED=" (from $SSH_FORWARDED)"
   else
     SSH_FORWARDED=