[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-79-g5b455e0

Ville Skyttä ville.skytta at iki.fi
Sat Dec 3 18:02:06 UTC 2011


The following commit has been merged in the master branch:
commit 5b455e01715cdcd34a17f4b4cde587efccfb9eb9
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Dec 3 20:01:11 2011 +0200

    _known_hosts_real: Include hosts reported by ruptime (Alioth: #313308).

diff --git a/bash_completion b/bash_completion
index eaee91e..5e200af 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1526,6 +1526,10 @@ _known_hosts_real()
                  awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
     fi
 
+    # Add hosts reported by ruptime.
+    COMPREPLY+=( $( compgen -W \
+        "$( ruptime 2>/dev/null | awk '{ print $1 }' )" -- "$cur" ) )
+
     # Add results of normal hostname completion, unless
     # `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value.
     if [[ -n ${COMP_KNOWN_HOSTS_WITH_HOSTFILE-1} ]]; then

-- 
bash-completion



More information about the Bash-completion-commits mailing list