summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bash-completion b/contrib/bash-completion
index d5a4a1f..31bc6f8 100644
--- a/contrib/bash-completion
+++ b/contrib/bash-completion
@@ -12,9 +12,9 @@ _hostinfo() {
if [[ -z "$arg" ]]; then
_completion="$_hostinfo_hosts"
else
- _completion="hostname os arch addresses ports vserver vserver-host"
+ _completion="$(hostinfo --keys $arg 2>/dev/null)"
fi
- COMPREPLY=( $( compgen -W "-o --oneline -f --file $_completion" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-o --oneline -f --file -k --keys $_completion" -- $cur ) )
}
complete -F _hostinfo hostinfo