aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-12 15:57:58 -0700
committerAdam Vandenberg2013-06-12 15:58:12 -0700
commit58a1aa75d6d54d634dcb748cf2bd2367f2a1dd08 (patch)
tree87443a99bfa5513fc1befecc5d4488635d0ccad3 /Library
parent5f032942ed89cc56587041cab112c38866cc6025 (diff)
downloadhomebrew-58a1aa75d6d54d634dcb748cf2bd2367f2a1dd08.tar.bz2
Update fetch bash completion
Also complete --devel and the formula's install options.
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/brew_bash_completion.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 19e7eb518..f3c685d66 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