diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 30056e37821..4a0ceb879a2 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -11,12 +11,7 @@ __systemctl() { } __systemd_properties() { - local mode=$1 - { __systemctl $mode show --all; - @rootlibexecdir@/systemd --dump-configuration-items; } | - while IFS='=' read -r key value; do - [[ $value ]] && echo "$key" - done + @rootlibexecdir@/systemd --dump-bus-properties } __contains_word () { @@ -154,7 +149,7 @@ _systemctl () { comps=$(compgen -A hostname) ;; --property|-p) - comps=$(__systemd_properties $mode) + comps=$(__systemd_properties) ;; --preset-mode) comps='full enable-only disable-only'