analytics: add bash completion
Closes #178. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
67944c2f2d
commit
b449a51ff7
@ -119,6 +119,13 @@ _brew_complete_tap ()
|
|||||||
__brewcomp "$(brew tap --list-official)"
|
__brewcomp "$(brew tap --list-official)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_brew_analytics ()
|
||||||
|
{
|
||||||
|
case "$COMP_CWORD" in
|
||||||
|
2) __brewcomp "off on regenerate-uuid state" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_brew_bottle ()
|
_brew_bottle ()
|
||||||
{
|
{
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
@ -586,6 +593,7 @@ _brew ()
|
|||||||
# subcommands have their own completion functions
|
# subcommands have their own completion functions
|
||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
--cache|--cellar|--prefix) __brew_complete_formulae ;;
|
--cache|--cellar|--prefix) __brew_complete_formulae ;;
|
||||||
|
analytics) _brew_analytics ;;
|
||||||
audit|cat|edit|home) __brew_complete_formulae ;;
|
audit|cat|edit|home) __brew_complete_formulae ;;
|
||||||
test|unlink) __brew_complete_installed ;;
|
test|unlink) __brew_complete_installed ;;
|
||||||
bottle) _brew_bottle ;;
|
bottle) _brew_bottle ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user