1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-20 22:31:57 +00:00

fix purge when dir contains weird shit

This commit is contained in:
romkatv 2019-07-19 14:27:16 +02:00
parent d81b4dbf68
commit fa457a3282

View file

@ -2164,8 +2164,9 @@ function _p9k_vcs_status_purge() {
unsetopt nomatch unsetopt nomatch
local dir=$1 local dir=$1
while true; do while true; do
unset _P9K_LAST_GIT_PROMPT[$dir] # unset doesn't work if $dir contains weird shit
unset _P9K_GIT_SLOW[$dir] _P9K_LAST_GIT_PROMPT[$dir]=""
_P9K_GIT_SLOW[$dir]=""
[[ $dir == / ]] && break [[ $dir == / ]] && break
dir=${dir:h} dir=${dir:h}
done done