mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Homepage takes any formula, installed or not.
Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
parent
33b90794e1
commit
bfa17cc16c
@ -28,14 +28,14 @@ _brew_to_completion()
|
|||||||
|
|
||||||
case ${prev} in
|
case ${prev} in
|
||||||
# Commands that take a formula...
|
# Commands that take a formula...
|
||||||
edit|install|home)
|
edit|install|home|homepage)
|
||||||
formulae=`ls ${brew_base}/Library/Formula/ | sed "s/\.rb//g"`
|
formulae=`ls ${brew_base}/Library/Formula/ | sed "s/\.rb//g"`
|
||||||
COMPREPLY=( $(compgen -W "${formulae}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${formulae}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Commands that take an existing brew...
|
# Commands that take an existing brew...
|
||||||
abv|home|homepage|info|list|link|ls|ln|rm|uninstall)
|
abv|info|list|link|ls|ln|rm|uninstall)
|
||||||
cellar_contents=`ls ${brew_base}/Cellar/`
|
cellar_contents=`ls ${brew_base}/Cellar/`
|
||||||
COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user