diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index d938a07509..90ca1476c7 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -40,6 +40,13 @@ _describe -t groups 'file system groups' _groups || compadd "$@" } +(( $+functions[_systemd-analyze_architectures] )) || + _systemd-analyze_architectures() { + local -a _architectures + _architectures=( $(systemd-analyze --quiet --no-pager --no-legend architectures | { while read -r a b; do echo " $a"; done; } 2>/dev/null) ) + _describe -t architectures 'architectures' _architectures || compadd "$@" + } + (( $+functions[_systemd-analyze_plot] )) || _systemd-analyze_plot() { local -a _options @@ -82,6 +89,7 @@ 'dlopen-metadata:Parse and print ELF dlopen metadata' 'has-tpm2:Report whether TPM2 support is available' 'transient-settings:List transient settings for unit types' + 'architectures:List known architectures' # log-level, log-target, service-watchdogs have been deprecated )