From 7d2c1b0ce744ffe13d98c278ce0dac97e10e39e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Sun, 15 Dec 2013 02:04:06 +0100 Subject: [PATCH] keeping liquidprompt from overriding PROMPT_DIRTRIM when path shortening is disabled --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index ab6bd04..06b7215 100755 --- a/liquidprompt +++ b/liquidprompt @@ -604,7 +604,7 @@ _lp_shorten_path() # liquidprompt can calculate this number under two condition, path shortening # must be activated and PROMPT_DIRTRIM must be already set. _lp_get_dirtrim() { - [[ "$LP_ENABLE_SHORTEN_PATH" != 1 ]] && echo 0 && return + [[ "$LP_ENABLE_SHORTEN_PATH" != 1 ]] && echo $PROMPT_DIRTRIM && return local p="${PWD/$HOME/~}" local len=${#p}