diff options
Diffstat (limited to 'Library/Contributions/brew_bash_completion.sh')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index e12d375d2..1d54ce5da 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -39,6 +39,13 @@ _brew_to_completion() COMPREPLY=( $(compgen -W "$(\ls $(brew --cellar))" -- ${cur}) ) return ;; + # Complete --options for selected brew + *) + [[ ${COMP_WORDS[1]} == "install" ]] && [[ "$cur" == --* ]] && { + COMPREPLY=( $(compgen -W "$(brew options "$prev" | grep -P "^--")" -- ${cur}) ) + return + } + ;; esac } |
