Browse Source

Escape '%' in path

master
Sorin Ionescu 10 years ago
parent
commit
1bc4235a5e
  1. 2
      modules/prompt/functions/prompt_damoekri_setup

2
modules/prompt/functions/prompt_damoekri_setup

@ -18,7 +18,7 @@ function prompt_damoekri_pwd { @@ -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
}

Loading…
Cancel
Save