# brew-completion: bash completion function for Homebrew (brew command)
-# Copyright (c)1020 Alexander Barton <alex@barton.de>
+# Copyright (c)2010 Alexander Barton <alex@barton.de>
# This is free software and published under the terms of the GNU
# General Public License, see the file COPYING for details.
done
case "$cmd" in
- "edit"|"home"|"log"|"prune")
+ "cleanup"|"edit"|"home"|"log"|"prune")
_brew_formula "$cur"
return 0
;;
;;
"list")
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--brewed \
+ COMPREPLY=( $(compgen -W '
--unbrewed' -- "$cur") )
else
_brew_formula "$cur"
COMPREPLY=( $(compgen -W '--cache --help --prefix --version \
-v -H' -- "$cur") )
elif [ "$cmd" = "" ]; then
- COMPREPLY=( $(compgen -W 'create edit home info install \
- link list log prune remove search uninstall unlink \
- update' -- "$cur") )
+ COMPREPLY=( $(compgen -W 'cleanup create edit home info \
+ install link list log prune remove search uninstall \
+ unlink update' -- "$cur") )
fi
}
complete -F _brew brew