chiark / gitweb /
shell-completion: add shell completion for "systemctl help"
[elogind.git] / shell-completion / bash / systemctl
index 3bdf4dc956bdf790418a8cd7653929b652c9fc2b..f5829b72f80fb2fd9a971e84c6d627f146429655 100644 (file)
@@ -24,7 +24,7 @@ __systemctl() {
 
 __systemd_properties() {
         local mode=$1
-        { __systemctl $mode show;
+        { __systemctl -a $mode show;
          systemd --dump-configuration-items; } |
         while IFS='=' read -r key value; do
             [[ $value ]] && echo "$key"
@@ -117,7 +117,7 @@ _systemctl () {
         fi
 
         local -A VERBS=(
-                [ALL_UNITS]='is-active is-failed is-enabled status show mask preset'
+                [ALL_UNITS]='is-active is-failed is-enabled status show mask preset help'
             [ENABLED_UNITS]='disable'
            [DISABLED_UNITS]='enable'
         [REENABLABLE_UNITS]='reenable'