1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 18:38:00 +00:00

Escape '%' in path

This commit is contained in:
Sorin Ionescu 2014-10-13 21:27:17 -04:00
parent c078c47c9d
commit 1bc4235a5e

View File

@ -18,7 +18,7 @@ function prompt_damoekri_pwd {
_prompt_damoekri_pwd="$MATCH" _prompt_damoekri_pwd="$MATCH"
unset MATCH unset MATCH
else else
_prompt_damoekri_pwd="${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}/${pwd:t}" _prompt_damoekri_pwd="${${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}//\%/%%}/${${pwd:t}//\%/%%}"
fi fi
} }