nslookup: complete on hosts (Alioth: #314673)
This commit is contained in:
parent
77e11c41ea
commit
b74d53761a
@ -39,6 +39,14 @@ _nslookup()
|
|||||||
-domain= -search -nosearch -port= -querytype= -recurse -norecurse
|
-domain= -search -nosearch -port= -querytype= -recurse -norecurse
|
||||||
-retry= -timeout= -vc -novc -fail -nofail' -- "$cur" ) )
|
-retry= -timeout= -vc -novc -fail -nofail' -- "$cur" ) )
|
||||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
[[ $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
|
fi
|
||||||
} &&
|
} &&
|
||||||
complete -F _nslookup nslookup
|
complete -F _nslookup nslookup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user