aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/brew_bash_completion.sh
diff options
context:
space:
mode:
authorJack Nagel2011-12-11 01:30:15 -0600
committerJack Nagel2011-12-11 01:49:47 -0600
commit3f76af69d3c74aefd7a232bc7fa948ce1d7d6685 (patch)
tree880ef63e7bd042fd5384d447762221e3b39e8832 /Library/Contributions/brew_bash_completion.sh
parente4bed29e99a2fb7be5b2c175f5d38d1cb294ef92 (diff)
downloadbrew-3f76af69d3c74aefd7a232bc7fa948ce1d7d6685.tar.bz2
completion: audit takes formula arguments
- Also remove `--strict` completion since that option was removed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Contributions/brew_bash_completion.sh')
-rw-r--r--Library/Contributions/brew_bash_completion.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 97b379190..355d6443f 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -63,11 +63,6 @@ _brew_to_completion()
# handle subcommand options
if [[ "$cur" == --* ]]; then
case "${COMP_WORDS[1]}" in
- audit)
- local opts=$([[ "${COMP_WORDS[*]}" =~ "--strict" ]] || echo "--strict")
- COMPREPLY=( $(compgen -W "$opts" -- ${cur}) )
- return
- ;;
cleanup)
local opts=$([[ "${COMP_WORDS[*]}" =~ "--force" ]] || echo "--force")
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) )
@@ -214,7 +209,7 @@ _brew_to_completion()
case "${COMP_WORDS[cmd_index]}" in
# Commands that take a formula
- cat|deps|edit|fetch|home|homepage|info|install|log|missing|options|uses|versions)
+ audit|cat|deps|edit|fetch|home|homepage|info|install|log|missing|options|uses|versions)
local ff=$(\ls $(brew --repository)/Library/Formula 2> /dev/null | sed "s/\.rb//g")
local af=$(\ls $(brew --repository)/Library/Aliases 2> /dev/null | sed "s/\.rb//g")
COMPREPLY=( $(compgen -W "${ff} ${af}" -- ${cur}) )