_known_hosts_real: Include hosts reported by ruptime (Alioth: #313308).
parent
86d0395fc5
commit
5b455e0171
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue