Browse Source

[Fix #626] Escape '%' in path

master
Sorin Ionescu 10 years ago
parent
commit
b4884d4d45
  1. 2
      modules/prompt/functions/prompt_sorin_setup

2
modules/prompt/functions/prompt_sorin_setup

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

Loading…
Cancel
Save