Add tab completion for lunch.

Change-Id: I4ddfffe8fe4519665a5a66aa60990f900a9ba80a
This commit is contained in:
Jeff Davidson 2010-08-02 10:00:44 -07:00
parent d1f76461c0
commit 513d7a4021

View file

@ -547,6 +547,19 @@ function lunch()
printconfig
}
# Tab completion for lunch.
function _lunch()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
COMPREPLY=( $(compgen -W "${LUNCH_MENU_CHOICES[*]}" -- ${cur}) )
return 0
}
complete -F _lunch lunch
# Configures the build to build unbundled apps.
# Run tapas with one ore more app names (from LOCAL_PACKAGE_NAME)
function tapas()