summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash_completion4
1 files changed, 4 insertions, 0 deletions
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