Skip to content

Commit

Permalink
Merge pull request #10225 from hyuraku/completions/zsh_add-pull-request
Browse files Browse the repository at this point in the history
completions/zsh: add --pull-reques to search
  • Loading branch information
MikeMcQuaid committed Jan 5, 2021
2 parents 50006ed + 11bc456 commit b678af3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions completions/zsh/_brew
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,14 @@ _brew_reinstall() {
# brew search, -S:
# brew search [--desc] text|/text/:
# brew search (--cask|--debian|--fedora|--fink|--macports|--opensuse|--ubuntu) text:
# brew search [--pull-request] text:
_brew_search() {
_arguments \
'(--cask --debian --fedora --fink --macports --opensuse --ubuntu)--desc[include description for each package]:text: ' \
'(--desc --cask --debian --fedora --fink --macports --opensuse --ubuntu)'{--debian,--fedora,--fink,--macports,--opensuse,--ubuntu}'[search for text in given package manager''s list]' \
'(--desc --cask --debian --fedora --fink --macports --opensuse
--ubuntu)--cask[search for text in Casks list]'
'(--desc --cask --debian --fedora --fink --macports --opensuse
--ubuntu)--cask[search for text in Casks list]' \
'--pull-request[search for GitHub pull requests]:text:'\
}

# brew sh [--env=std]:
Expand Down

0 comments on commit b678af3

Please sign in to comment.