11 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
Mike McQuaid
287ddb64b2 Merge pull request #407 from joshka/feature/zsh-completion
Call subcommands from zsh completion
2016-09-11 10:44:02 +01:00
Vlad Shablinsky
b7dc6ce7ee Update zsh-completion for --fetch-HEAD 2016-08-11 09:12:30 +02:00
Joshua McKinney
bf4f337903 Call subcommands from zsh completion
This change is inspired by the way that the git zsh completions work by foisting
the responsibility for sub commands onto the command themselves.
It is paired with another change that takes the oh-my-zsh brew cask plugin and
makes it into a first class completion rather than it overriding this.

This change requires fixes in brew, oh-my-zsh and the zsh-completions, and will
likely cause the brew cask completions to break until these have been fully
accepted into each project.
2016-06-30 15:43:17 -05:00
Xu Cheng
0812b721bd analytics: add zsh completion 2016-05-02 16:07:10 +08:00
Xu Cheng
edf000e4cd Core/formula separation Part 2(b)
* move shell completion scripts to where can be auto picked up

Let's use switching new remote as opportunity to put shell completion
scripts to where they should be and avoid git conflict during the process.

* add Library/Formula and Library/Aliases symlinks

Formulae and Aliases has been relocated to homebrew/core tap.
The symlinks are pointed to new location to keep backward compatibility.

* remove formula_renames and tap_migrations

They have been replaced by the json files in the core tap.

* update: set new remote

* bump Homebrew version to 0.9.9
2016-04-03 18:34:17 +08:00