zsh 缺少 /usr/local/share/zsh/site-functions/_brew_cask

compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask_学无止境-优快云博客

解决方法:

找个_brew_cask添加到Homebrew/completions/zsh文件夹中

将下面内容添加到_brew_cask文件中,文件没有后缀

#compdef brew-cask
#autoload

# Zsh Autocompletion script for Homebrew Cask
#   https://github.com/homebrew/brew

# Authors:
#   Patrick Stadler (https://github.com/pstadler)
#   Josh McKinney (https://github.com/joshka)

# only display the main commands (but enable completing aliases like 'ls')
zstyle -T ':completion:*:*:*:brew-cask:*' tag-order && \
	zstyle ':completion:*:*:*:brew-cask:*' tag-order 'commands'

__brew_all_casks() {
  local -a list
  local expl
  local comp_cachename=brew_casks

  if ! _retrieve_cache $comp_cachename; then
    list=( $(brew search --cask) )
    _store_cache $comp_cachename list
  fi

  _wanted list expl 'all casks' compadd -a list
}

__brew_installed_casks() {
  local -a list
  local expl
  list=( $(brew list --cask) )
  _wanted list expl 'installed casks' compadd -a list
}

__brew_cask_commands() {
  local -a commands
  commands=(
    'audit:verifies installability of C
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值