summaryrefslogtreecommitdiff
path: root/completions/nslookup
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/nslookup
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/nslookup')
-rw-r--r--completions/nslookup10
1 files changed, 9 insertions, 1 deletions
diff --git a/completions/nslookup b/completions/nslookup
index 88af1d5b..f137b0a1 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
@@ -75,4 +83,4 @@ _host()
} &&
complete -F _host host
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh