1
0

guard find call in completion

This commit is contained in:
Konstantin Demin 2022-05-18 10:34:39 +03:00
parent f0a6c78243
commit 48a90c3981
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -10,7 +10,7 @@ __z_compdump_print() { printf '#zshu %s %s\n' "$1" "${(P)1}" ; }
__z_compdump_invalidate() {
command rm -f "${ZSHU[f_compdump]}"
find "${ZSHU[d_compcache]}/" -mindepth 1 -type f '!' -name '.keep' -delete
find "${ZSHU[d_compcache]}/" -xdev -mindepth 1 -type f '!' -name '.keep' -delete
ZSHU[compdump_refresh]=1
}