Skip to content

Commit 7eefa3f

Browse files
committed
coredumpctl: add --file/--root/--image to bash completion
(cherry picked from commit 448ed94) (cherry picked from commit abf9e91)
1 parent 83548e2 commit 7eefa3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shell-completion/bash/coredumpctl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ _coredumpctl() {
4040
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
4141
local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1
4242
-r --reverse -S --since -U --until -D --directory -q --quiet --debugger
43-
-A --debugger-arguments --json -n --all'
43+
-A --debugger-arguments --json -n --all --file --root --image'
4444

4545
local -A VERBS=(
4646
[LIST]='list info'
4747
[DUMP]='dump debug'
4848
)
4949

50-
if __contains_word "$prev" --output -o; then
50+
if __contains_word "$prev" --output -o --file --image; then
5151
comps=$( compgen -A file -- "$cur" )
5252
compopt -o filenames
53-
elif __contains_word "$prev" -D --directory; then
53+
elif __contains_word "$prev" -D --directory --root; then
5454
comps=$( compgen -A directory -- "$cur" )
5555
compopt -o filenames
5656
elif __contains_word "$prev" '--debugger'; then

0 commit comments

Comments
 (0)