mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
fix purge when dir contains weird shit
This commit is contained in:
parent
d81b4dbf68
commit
fa457a3282
1 changed files with 3 additions and 2 deletions
|
@ -2164,8 +2164,9 @@ function _p9k_vcs_status_purge() {
|
|||
unsetopt nomatch
|
||||
local dir=$1
|
||||
while true; do
|
||||
unset _P9K_LAST_GIT_PROMPT[$dir]
|
||||
unset _P9K_GIT_SLOW[$dir]
|
||||
# unset doesn't work if $dir contains weird shit
|
||||
_P9K_LAST_GIT_PROMPT[$dir]=""
|
||||
_P9K_GIT_SLOW[$dir]=""
|
||||
[[ $dir == / ]] && break
|
||||
dir=${dir:h}
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue