The following commit has been merged in the master branch:
commit 5b455e01715cdcd34a17f4b4cde587efccfb9eb9
Author: Ville Skyttä <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits