completion: ngrok: Only complete the list in case prev is ngrok

pull/1850/head
Noah Gorny 2021-03-15 23:08:01 +02:00
parent 035fc920ad
commit 1dfaf36d91
1 changed files with 3 additions and 1 deletions

View File

@ -33,10 +33,12 @@ __ngrok_completion() {
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "$BASE_NO_CONF --channel" -- "$curr"))
;;
*)
ngrok)
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "authtoken credits http start tcp tls update version help" -- "$curr"))
;;
*) ;;
esac
}