]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredumpctl: add --file/--root/--image to bash completion 27461/head
authorLuca Boccassi <bluca@debian.org>
Tue, 25 Apr 2023 14:30:34 +0000 (15:30 +0100)
committerLuca Boccassi <bluca@debian.org>
Sat, 29 Apr 2023 17:47:34 +0000 (18:47 +0100)
shell-completion/bash/coredumpctl

index 3a02744541c79650e2c67d6e0897bf84f12e7af5..b5719905f9a4c823a3013b5a68add5f1cc731ffb 100644 (file)
@@ -40,17 +40,17 @@ _coredumpctl() {
     local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
     local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1
                 -r --reverse -S --since -U --until -D --directory -q --quiet --debugger
-                -A --debugger-arguments --json -n --all'
+                -A --debugger-arguments --json -n --all --file --root --image'
 
     local -A VERBS=(
         [LIST]='list info'
         [DUMP]='dump debug'
     )
 
-    if __contains_word "$prev" --output -o; then
+    if __contains_word "$prev" --output -o --file --image; then
         comps=$( compgen -A file -- "$cur" )
         compopt -o filenames
-    elif __contains_word "$prev" -D --directory; then
+    elif __contains_word "$prev" -D --directory --root; then
         comps=$( compgen -A directory -- "$cur" )
         compopt -o filenames
     elif __contains_word "$prev" '--debugger'; then