chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-analyse: add "critical-chain" command
[elogind.git]
/
shell-completion
/
bash
/
systemd-analyze
diff --git
a/shell-completion/bash/systemd-analyze
b/shell-completion/bash/systemd-analyze
index 8a4453d4055d7639feaeae1e61ef09b4160eb1c9..11276ef09cd68b1c75bec21c88702b4191257443 100644
(file)
--- 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'
local -A VERBS=(
[NO_OPTION]='time blame plot'
+ [CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
)
[DOT]='dot'
)
@@
-57,6
+58,11
@@
_systemd_analyze() {
comps='--help --version --system --user'
fi
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'
elif __contains_word "$verb" ${VERBS[DOT]}; then
if [[ $cur = -* ]]; then
comps='--help --version --system --user --from-pattern --to-pattern --order --require'