From 46db8c53c90e9c71476b336fc875c4ec5d1eb25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Thu, 13 Jun 2013 02:32:20 +0200 Subject: [PATCH] Fix mark for root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I broke it in cf2ff289c8755019bba5dff271ae3d03a784fc5e. Thanks to François Schmidts who immediately noticed the bug and produced a patch (but that I choose to not apply). Closes #201. --- liquidprompt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 22fe05d..ae6e6ce 100755 --- a/liquidprompt +++ b/liquidprompt @@ -373,7 +373,10 @@ else # root! LP_COLOR_MARK="${LP_COLOR_MARK_ROOT}" LP_COLOR_PATH="${LP_COLOR_PATH_ROOT}" # Disable VCS info for all paths - [[ "$LP_ENABLE_VCS_ROOT" != 1 ]] && LP_DISABLED_VCS_PATH=/ + if [[ "$LP_ENABLE_VCS_ROOT" != 1 ]]; then + LP_DISABLED_VCS_PATH=/ + LP_MARK_DISABLED="$_LP_MARK_SYMBOL" + fi fi