From ed4f3832fe2f7380ec1b7949777fffe2a7f63f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 30 Jun 2014 22:28:52 +0200 Subject: [PATCH] Remove variable LP_LIQUIDPROMPT, redundant with LP_OLD_PS1 --- liquidprompt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/liquidprompt b/liquidprompt index 279f380..f98780f 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1717,7 +1717,7 @@ prompt_tag() prompt_on() { # if liquidprompt has not been already set - if [[ -z "$LP_LIQUIDPROMPT" ]] ; then + if [[ -z "$LP_OLD_PS1" ]] ; then LP_OLD_PS1="$PS1" if $_LP_SHELL_bash; then LP_OLD_PROMPT_COMMAND="$PROMPT_COMMAND" @@ -1743,10 +1743,6 @@ prompt_on() } #fi fi - - # Keep in mind that LP has been sourced - # (to avoid recursive prompt command). - LP_LIQUIDPROMPT=1 } # Come back to the old prompt