From df277cb5012195e92c07642cf6098426963ac8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Wed, 9 Jul 2014 23:05:08 +0200 Subject: [PATCH] lp_set_dirtrim: fix quoting --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 5f16b51..39b6d1b 100755 --- a/liquidprompt +++ b/liquidprompt @@ -636,7 +636,7 @@ _lp_shorten_path() # must be disabled and PROMPT_DIRTRIM must be already set. _lp_set_dirtrim() { local p="$(_lp_get_home_tilde_collapsed)" - local -i max_len=${COLUMNS:-80}*$LP_PATH_LENGTH/100 + local -i max_len="${COLUMNS:-80}*$LP_PATH_LENGTH/100" local -i dt=0 if (( ${#p} > max_len )); then