nslookup: complete on hosts (Alioth: #314673)
parent
77e11c41ea
commit
b74d53761a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue