X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-analyze;fp=shell-completion%2Fbash%2Fsystemd-analyze;h=11276ef09cd68b1c75bec21c88702b4191257443;hp=8a4453d4055d7639feaeae1e61ef09b4160eb1c9;hb=bb150966c0687d2fa94da0a36dabba90c1a84b8b;hpb=17f5e4577b774f8df87c7fc6068b6b32bf5d44f0 diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 8a4453d40..11276ef09 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -31,6 +31,7 @@ _systemd_analyze() { local -A VERBS=( [NO_OPTION]='time blame plot' + [CRITICAL_CHAIN]='critical-chain' [DOT]='dot' ) @@ -57,6 +58,11 @@ _systemd_analyze() { comps='--help --version --system --user' fi + elif __contains_word "$verb" ${VERBS[CRITICAL_CHAIN]}; then + if [[ $cur = -* ]]; then + comps='--help --version --system --user --fuzz' + fi + elif __contains_word "$verb" ${VERBS[DOT]}; then if [[ $cur = -* ]]; then comps='--help --version --system --user --from-pattern --to-pattern --order --require'