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

master
Ville Skyttä 2011-12-03 20:01:11 +02:00
parent 86d0395fc5
commit 5b455e0171
1 changed files with 4 additions and 0 deletions

View File

@ -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