1
0

add simple cache flush routine

This commit is contained in:
Konstantin Demin 2022-05-18 10:33:49 +03:00
parent faae072861
commit f0a6c78243
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -19,3 +19,8 @@ z-reload() {
exec -a "${ZSH_ARGZERO}" "${ZSH_NAME}" "${argv[@]}" exec -a "${ZSH_ARGZERO}" "${ZSH_NAME}" "${argv[@]}"
echo "unable to reload (something went wrong), code $?" 1>&2 echo "unable to reload (something went wrong), code $?" 1>&2
} }
## reload or new session are required to regenerate compcache
z-cache-flush() {
find "${ZSHU[d_cache]}/" -xdev -mindepth 1 -type f '!' -name '.keep' -delete
}