それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

bash-completion for brew cask

cask completion

very suitable for aliased cask alias cask='brew cask'

example

takuya@~$ cask
audit      cleanup    doctor     fetch      info       list       style      update
cat        create     edit       home       install    search     uninstall  zap
takuya@~$ cask install opera
opera                  opera-mail             opera-mobile-emulator  operadriver
takuya@~$ cask uninstall o
opera-mail  osxfuse

Installation target location

Copy into bash_completion directory

  • ~/bash_completion.d # for user
  • /usr/local/etc/bash_completion.d # for homebrew
  • /etc/bash_completion.d # for osx

Source

gist.github.com