X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-analyze;h=77d1b542a238efd9669ece79d1b163170544b7d2;hb=06c1c4f98c0d0b4c93e58d75ed5a08d722ec4de3;hp=5575bebfc45c1148fedb62bc12676a4d3b6db19e;hpb=64ae7f1864d54f38d62e258322a7ea9756c7284b;p=elogind.git 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") )