Update fetch bash completion

Also complete --devel and the formula's install options.
This commit is contained in:
Adam Vandenberg 2013-06-12 15:57:58 -07:00
parent 0f314f9808
commit 7f9e4e11a3

View File

@ -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