From 254407cfa4d56899ab3d624a5376f3f641ce1408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Thu, 24 Jan 2013 09:42:53 +0100 Subject: [PATCH] fixing regression : lost the smart mark in vars renaming --- liquidprompt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/liquidprompt b/liquidprompt index 0f3fffe..1d1594a 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1216,8 +1216,7 @@ _lp_set_prompt() LP_PWD=$(_lp_shorten_path) [[ -n "$PROMPT_DIRTRIM" ]] && PROMPT_DIRTRIM=$(_lp_get_dirtrim) - if [[ ( "$EUID" -ne "0" || "$LP_ENABLE_VCS_ROOT" = "1" ) - && "$(_lp_are_vcs_disabled)" -eq "0" ]] ; then + if [[ "$(_lp_are_vcs_disabled)" -eq "0" ]] ; then LP_VCS="$(_lp_git_branch_color)" LP_VCS_TYPES="git" if [[ -z "$LP_VCS" ]]; then @@ -1244,7 +1243,7 @@ _lp_set_prompt() fi # end of the prompt line: double spaces - LP_MARK=$(_lp_sb "$(_lp_smart_mark $vcs)") + LP_MARK=$(_lp_sb "$(_lp_smart_mark $LP_VCS_TYPES)") # Different path color if root if [[ "$EUID" -ne "0" ]] ; then