aboutsummaryrefslogtreecommitdiffstats
path: root/completions/bash/brew
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bash/brew')
-rw-r--r--completions/bash/brew9
1 files changed, 8 insertions, 1 deletions
diff --git a/completions/bash/brew b/completions/bash/brew
index f885b808d..02c862bbd 100644
--- a/completions/bash/brew
+++ b/completions/bash/brew
@@ -613,6 +613,13 @@ __brew_cask_complete_caskroom ()
COMPREPLY=($(compgen -W "$files" -- "$cur"))
}
+__brew_cask_complete_outdated ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ local outdated=$(brew cask outdated --quiet)
+ COMPREPLY=($(compgen -W "$outdated" -- "$cur"))
+}
+
_brew_cask_cleanup ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -709,7 +716,7 @@ _brew_cask_upgrade ()
return
;;
esac
- __brew_cask_complete_installed
+ __brew_cask_complete_outdated
}
_brew_cask ()