1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 10:51:41 +00:00

[Fix #301] Unset $MATCH after use

This commit is contained in:
Sorin Ionescu
2012-09-26 16:51:32 -04:00
parent 1dfc0bf784
commit be0e4245a6
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ function prompt_sorin_pwd {
if [[ "$pwd" == (#m)[/~] ]]; then
_prompt_sorin_pwd="$MATCH"
unset MATCH
else
_prompt_sorin_pwd="${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}/${pwd:t}"
fi