add simple cache flush routine
This commit is contained in:
parent
faae072861
commit
f0a6c78243
@ -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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user