From 5b455e01715cdcd34a17f4b4cde587efccfb9eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 3 Dec 2011 20:01:11 +0200 Subject: _known_hosts_real: Include hosts reported by ruptime (Alioth: #313308). --- bash_completion | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash_completion b/bash_completion index eaee91e0..5e200afe 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 -- cgit v1.2.1