4 if ! (( $+commands[cask] )); then
5 print "zsh cask plugin: cask command not found" >&2
9 cask_base=${commands[cask]:h:h}
11 # Plain cask installation location (for Cask 0.7.2 and earlier)
12 comp_files=($cask_base/etc/cask_completion.zsh)
14 # Mac Homebrew installs the completion in a different location
15 if (( $+commands[brew] )); then
16 comp_files+=($(brew --prefix)/share/zsh/site-functions/cask_completion.zsh)
19 # Load first found file
20 for f in $comp_files; do
21 if [[ -f "$f" ]]; then