diff --git a/completions/nslookup b/completions/nslookup index 88af1d5b..59899456 100644 --- a/completions/nslookup +++ b/completions/nslookup @@ -39,6 +39,14 @@ _nslookup() -domain= -search -nosearch -port= -querytype= -recurse -norecurse -retry= -timeout= -vc -novc -fail -nofail' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace + return + fi + + local args + _count_args = + if [[ $args -le 2 ]]; then + _known_hosts_real "$cur" + [[ $args -eq 1 && $cur == @(|-) ]] && COMPREPLY+=( - ) fi } && complete -F _nslookup nslookup