From 60c68080b7853b90c435fe807aaf6ad9bec5645b Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 10 Nov 2025 17:05:31 +0100 Subject: [PATCH] shell-completion: zsh: add systemd-analyze architectures completion --- shell-completion/zsh/_systemd-analyze | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index d938a07509e..90ca1476c76 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 ) -- 2.47.3