From 871c38096d7224351457a5111d5ebf61f8aa9416 Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 5 Sep 2012 19:44:53 +0200 Subject: [PATCH] bugfix: consider every X screen as a local connection, not only the first one --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 399cd3c..a85f615 100755 --- a/liquidprompt +++ b/liquidprompt @@ -312,7 +312,7 @@ _lp_connection() else # TODO check on *BSD local sess_src=$(who am i | sed -n 's/.*(\(.*\))/\1/p') - if [[ -z "$sess_src" || "$sess_src" = :0.0 || "$sess_src" == :0 ]] ; then + if [[ -z "$sess_src" || "$sess_src" = ":"* ]] ; then echo lcl # Local else echo tel # Telnet @@ -345,7 +345,7 @@ tel) esac # Useless now, so undefine -unset _lp_connection +# unset _lp_connection # put an arrow if an http proxy is set