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:
@ -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
|
||||
|
Reference in New Issue
Block a user