mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
shell-completion: zsh: add systemd-analyze architectures completion
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user