aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/brew_bash_completion.sh4
-rw-r--r--Library/Contributions/brew_zsh_completion.zsh3
2 files changed, 4 insertions, 3 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index d832cc41a..ddd9c17e0 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -13,7 +13,7 @@ _brew_to_completion()
prev="${COMP_WORDS[COMP_CWORD-1]}"
# We only complete unabbreviated commands...
- actions="configure create edit generate homepage info install list link options prune remove search unlink update"
+ actions="configure create edit generate homepage info install list link options prune remove search unlink update uses"
# Subcommand list
if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then
@@ -26,7 +26,7 @@ _brew_to_completion()
case ${prev} in
# Commands that take a formula...
- edit|install|home|homepage)
+ edit|install|home|homepage|uses)
formulae=`ls ${brew_base}/Library/Formula/ | sed "s/\.rb//g"`
COMPREPLY=( $(compgen -W "${formulae}" -- ${cur}) )
return 0
diff --git a/Library/Contributions/brew_zsh_completion.zsh b/Library/Contributions/brew_zsh_completion.zsh
index 8ba688955..12f3081c8 100644
--- a/Library/Contributions/brew_zsh_completion.zsh
+++ b/Library/Contributions/brew_zsh_completion.zsh
@@ -29,6 +29,7 @@ _1st_arguments=(
'log:git commit log for a formula'
'create:create a new formula'
'edit:edit a formula'
+ 'uses:show formulas which depend on a formula'
)
local expl
@@ -56,7 +57,7 @@ case "$words[1]" in
_brew_installed_formulae
_requested installed_formulae expl 'installed formulae' compadd -a installed_formulae
fi ;;
- install|home|log|info)
+ install|home|log|info|uses)
_brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;;
remove|edit|xo)