diff --git a/shell-completion/bash/systemd-confext b/shell-completion/bash/systemd-confext index d36f70fa094..16dbdf06bbe 100644 --- a/shell-completion/bash/systemd-confext +++ b/shell-completion/bash/systemd-confext @@ -36,7 +36,8 @@ _systemd-confext() { [ARG]='--root --json --noexec - --image-policy' + --image-policy + --mutable' ) local -A VERBS=( @@ -59,11 +60,14 @@ _systemd-confext() { comps='pretty short off' ;; --noexec) - comps='false true' + comps='no yes' ;; --image-policy) comps='' ;; + --mutable) + comps=$( systemd-confext --no-legend --mutable=help 2>/dev/null; echo help ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 diff --git a/shell-completion/bash/systemd-sysext b/shell-completion/bash/systemd-sysext index 5c15f076a87..c605237ed67 100644 --- a/shell-completion/bash/systemd-sysext +++ b/shell-completion/bash/systemd-sysext @@ -31,9 +31,13 @@ _systemd-sysext() { [STANDALONE]='-h --help --version --no-pager --no-legend + --no-reload --force' [ARG]='--root - --json' + --json + --noexec + --image-policy + --mutable' ) local -A VERBS=( @@ -55,6 +59,15 @@ _systemd-sysext() { --json) comps='pretty short off' ;; + --noexec) + comps='no yes' + ;; + --image-policy) + comps='' + ;; + --mutable) + comps=$( systemd-sysext --no-legend --mutable=help 2>/dev/null; echo help ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0