6 Commits

Author SHA1 Message Date
Joshua McKinney
1e152f1417 Fix first _brew_cask completion function call
Without a call to _brew_cask at the end of the script, the first
completion does not work as zsh just autoloads the function without
executing it.
2016-09-14 10:12:46 -05:00
Joshua McKinney
3f75cb06c6 Update brew-cask zsh completions header 2016-09-11 14:13:13 -05:00
Joshua McKinney
db18a13389 Add brew-cask arg descriptions to zsh completion 2016-09-11 14:11:08 -05:00
Joshua McKinney
34bf313704 Add missing brew-cask commands to zsh completion 2016-09-11 14:10:08 -05:00
Joshua McKinney
abae36d96d Refactor brew-cask zsh completion to functions 2016-09-11 14:08:50 -05:00
Joshua McKinney
4ff6ea950b Add Homebrew Cask completions
This completion was originally sourced from the oh-my-zsh brew cask plugin.
(https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/brew-cask/brew-cask.plugin.zsh)

The rationale for splitting this from the original omz plugin is to address the
following issues:
1. it is part of oh-my-zsh which some have chosen not to use (e.g. zprezto users)
2. it acts as a script overriding the existing brew completion rather than as a
standard autoloadable file, this means it must be manually installed rather than
automatically installed as part of compinit, and may cause issues with future
commands added to homebrew.

The changes from the plugin are to fix item 2, as well as update the commands to
those current in homebrew cask.
2016-09-11 14:08:08 -05:00