chiark / gitweb /
systemd-analyse: add "critical-chain" command
[elogind.git] / shell-completion / bash / systemd-analyze
index 8a4453d4055d7639feaeae1e61ef09b4160eb1c9..11276ef09cd68b1c75bec21c88702b4191257443 100644 (file)
@@ -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'