Closed lentil32 closed 3 months ago
The above function not work when cache file dosn't exist, i.e., first run with that completion.
So, I use like following:
_smartcache-comp() {
local cache=$1; shift
filename=${cache:t}
modified_cache="${cache/$filename/_$filename}"
$@ > $modified_cache &!
}
Sourcing this plugin before compinit
and it works properly.
Current behavior
autocompletion file's name is not starting with
_
, socompinit
does not recognize the autocompletion.Suggestion
Reference
zsh-completions/zsh-completions-howto.org at master · zsh-users/zsh-completions