diff options
| author | Jack Nagel | 2014-03-29 22:26:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-29 22:26:03 -0500 |
| commit | 5117dbb69034691304a83341302e5f183c5754f8 (patch) | |
| tree | 468601770882bed602ba3348f9ae78da44819a07 /Library | |
| parent | b70234cdca250242561637228db2e1f7f254d48c (diff) | |
| download | homebrew-5117dbb69034691304a83341302e5f183c5754f8.tar.bz2 | |
Add bash completion for `brew bottle`
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 12f3cbb89..0dbbbfd36 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -131,6 +131,18 @@ __brew_complete_taps () __brewcomp "$__brew_cached_taps" } +_brew_bottle () +{ + local cur="${COMP_WORDS[COMP_CWORD]}" + case "$cur" in + --*) + __brewcomp "--merge --rb --write" + return + ;; + esac + __brew_complete_installed +} + _brew_cleanup () { local cur="${COMP_WORDS[COMP_CWORD]}" @@ -471,6 +483,7 @@ _brew () --cache|--cellar|--prefix) __brew_complete_formulae ;; audit|cat|edit|home) __brew_complete_formulae ;; test|unlink) __brew_complete_installed ;; + bottle) _brew_bottle ;; cleanup) _brew_cleanup ;; create) _brew_create ;; deps) _brew_deps ;; |
