nslookup: complete on hosts (Alioth: #314673)

master
Ville Skyttä 2014-05-01 18:30:20 +03:00
parent 77e11c41ea
commit b74d53761a
1 changed files with 8 additions and 0 deletions

View File

@ -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