_ngc() {
    local candidates
    candidates="$(command ngc __complete "${COMP_WORDS[@]:1:COMP_CWORD}")"
    COMPREPLY=($(compgen -W "$candidates" -- "${COMP_WORDS[COMP_CWORD]}"))
}

complete -F _ngc ngc
