summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemd-analyze
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/systemd-analyze')
-rw-r--r--shell-completion/bash/systemd-analyze10
1 files changed, 9 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index 9fe984d87c..fe2c1d122c 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -60,9 +60,10 @@ _systemd_analyze() {
)
local -A VERBS=(
- [STANDALONE]='time blame plot dump unit-paths exit-status calendar timestamp timespan'
+ [STANDALONE]='time blame plot unit-paths exit-status calendar timestamp timespan'
[CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
+ [DUMP]='dump'
[VERIFY]='verify'
[SECCOMP_FILTER]='syscall-filter'
[CAT_CONFIG]='cat-config'
@@ -125,6 +126,13 @@ _systemd_analyze() {
comps='--help --version --system --user --global --from-pattern --to-pattern --order --require'
fi
+ elif __contains_word "$verb" ${VERBS[DUMP]}; then
+ if [[ $cur = -* ]]; then
+ comps='--help --version --system --user --no-pager'
+ else
+ comps=$( __get_units_all )
+ fi
+
elif __contains_word "$verb" ${VERBS[SECCOMP_FILTER]}; then
if [[ $cur = -* ]]; then
comps='--help --version --no-pager'