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-analyze9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index 5575bebfc..77d1b542a 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -44,6 +44,7 @@ _systemd_analyze() {
[CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
[LOG_LEVEL]='set-log-level'
+ [VERIFY]='verify'
)
_init_completion || return
@@ -99,6 +100,14 @@ _systemd_analyze() {
comps='debug info notice warning err crit alert emerg'
fi
+ elif __contains_word "$verb" ${VERBS[VERIFY]}; then
+ if [[ $cur = -* ]]; then
+ comps='--help --version --system --user --no-man'
+ else
+ comps=$( compgen -A file -- "$cur" )
+ compopt -o filenames
+ fi
+
fi
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )