[Fix #626] Escape '%' in path
This commit is contained in:
parent
abfc4ab6e5
commit
b4884d4d45
@ -18,7 +18,7 @@ function prompt_sorin_pwd {
|
||||
_prompt_sorin_pwd="$MATCH"
|
||||
unset MATCH
|
||||
else
|
||||
_prompt_sorin_pwd="${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}/${pwd:t}"
|
||||
_prompt_sorin_pwd="${${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}//\%/%%}/${${pwd:t}//\%/%%}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user