From 1bc4235a5e05dee20a85788291c2da0efec47759 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 13 Oct 2014 21:27:17 -0400 Subject: [PATCH] Escape '%' in path --- modules/prompt/functions/prompt_damoekri_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/functions/prompt_damoekri_setup b/modules/prompt/functions/prompt_damoekri_setup index 030e5b2..58c4d35 100644 --- a/modules/prompt/functions/prompt_damoekri_setup +++ b/modules/prompt/functions/prompt_damoekri_setup @@ -18,7 +18,7 @@ function prompt_damoekri_pwd { _prompt_damoekri_pwd="$MATCH" unset MATCH else - _prompt_damoekri_pwd="${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}/${pwd:t}" + _prompt_damoekri_pwd="${${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}//\%/%%}/${${pwd:t}//\%/%%}" fi }