[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-121-g452e938

Ville Skyttä ville.skytta at iki.fi
Sat Feb 2 19:04:27 UTC 2013


The following commit has been merged in the master branch:
commit eb0be65d630e348d8e644fb70d8e2a86b00e3bdc
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Feb 2 20:21:43 2013 +0200

    host: Complete with known hosts.

diff --git a/completions/nslookup b/completions/nslookup
index 8285ee1..88af1d5 100644
--- a/completions/nslookup
+++ b/completions/nslookup
@@ -68,7 +68,10 @@ _host()
 
     if [[ $cur == -* ]]; then
         COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+        return
     fi
+
+    _known_hosts_real "$cur"
 } &&
 complete -F _host host
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list