mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Add home(page) to completion.
Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
parent
d327b7e7e2
commit
a734b30a68
@ -15,7 +15,7 @@ _brew_to_completion()
|
|||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
|
|
||||||
# We only complete unabbreviated commands...
|
# We only complete unabbreviated commands...
|
||||||
actions="edit info install list link make uninstall"
|
actions="edit homepage info install list link make uninstall"
|
||||||
|
|
||||||
# Subcommand list
|
# Subcommand list
|
||||||
if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then
|
if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then
|
||||||
@ -35,7 +35,7 @@ _brew_to_completion()
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
# Commands that take an existing brew...
|
# Commands that take an existing brew...
|
||||||
abv|info|list|link|ls|ln|rm|uninstall)
|
abv|home|homepage|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