Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
- opts="--help --portage-dir --atom --threads"
+ opts="--help --portage-dir --overlay-dir --update --atom --threads"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
fi
case "${prev}" in
- --portage-dir)
+ --portage-dir|--overlay-dir)
COMPREPLY=( $(compgen -o dirnames -A directory ${cur}) )
;;
esac