From 3773188b4f528052fb8e61e730f01e426f1d9d47 Mon Sep 17 00:00:00 2001 From: Dustin Knie Date: Mon, 29 Apr 2013 21:04:53 -0700 Subject: [PATCH] Use print -P instead of echo for printing %~. --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 1ce6e72..d403ed3 100755 --- a/liquidprompt +++ b/liquidprompt @@ -545,9 +545,9 @@ _lp_shorten_path() fi elif [[ "$_LP_WORKING_SHELL" == "zsh" ]]; then if [[ "$len" -gt "$max_len" ]]; then - echo "%-${keep}~%${max_len}<${mask}<%~%<<" + print -P "%-${keep}~%${max_len}<${mask}<%~%<<" else - echo "%~" + print -P "%~" fi fi }