completion: allow manual invalidation
This commit is contained in:
@@ -66,3 +66,11 @@ __z_comp_external() {
|
||||
autoload -Uz "_$1"
|
||||
return 0
|
||||
}
|
||||
|
||||
## reload or new session are required to regenerate compcache
|
||||
z-comp-invalidate() {
|
||||
[ -n "$1" ] || return 1
|
||||
local f="${ZSHU[d_cache]}/completion/_$1"
|
||||
[ -f "$f" ] || return 2
|
||||
command rm -f "$f" || return 3
|
||||
}
|
||||
|
Reference in New Issue
Block a user