From 7f9e4e11a3e17cf4fca1bd5b7487d1b25424f303 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 12 Jun 2013 15:57:58 -0700 Subject: [PATCH] Update fetch bash completion Also complete --devel and the formula's install options. --- Library/Contributions/brew_bash_completion.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 19e7eb5182..f3c685d66b 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -168,9 +168,14 @@ _brew_diy () _brew_fetch () { local cur="${COMP_WORDS[COMP_CWORD]}" + local prv=$(__brewcomp_prev) case "$cur" in --*) - __brewcomp "--deps --force --HEAD" + __brewcomp " + --deps --force + --devel --HEAD + $(brew options --compact "$prv" 2>/dev/null) + " return ;; esac