add compsys cache for brew casks

This commit is contained in:
Jacob Menke 2020-05-20 05:12:39 -04:00
parent d254730e78
commit 159a5bb2d6

View File

@ -19,7 +19,13 @@ __brew_cask() {
__brew_all_casks() {
local -a list
local expl
local comp_cachename=brew_casks
if _cache_invalid $comp_cachename || ! _retrieve_cache $comp_cachename; then
list=( $(brew search --casks) )
_store_cache $comp_cachename list
fi
_wanted list expl 'all casks' compadd -a list
}