diff options
author | Luca Boccassi <bluca@debian.org> | 2023-04-25 16:30:34 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-04-29 19:47:34 +0200 |
commit | 448ed94dd90b4b1caa9863a3594b14aac7f77cff (patch) | |
tree | 57c4c0e2363bfd9aefba1e27ca51328dd0ee1d0b /shell-completion/bash/coredumpctl | |
parent | coredumpctl: fix bash completion matching (diff) | |
download | systemd-448ed94dd90b4b1caa9863a3594b14aac7f77cff.tar.xz systemd-448ed94dd90b4b1caa9863a3594b14aac7f77cff.zip |
coredumpctl: add --file/--root/--image to bash completion
Diffstat (limited to 'shell-completion/bash/coredumpctl')
-rw-r--r-- | shell-completion/bash/coredumpctl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell-completion/bash/coredumpctl b/shell-completion/bash/coredumpctl index 3a02744541..b5719905f9 100644 --- a/shell-completion/bash/coredumpctl +++ b/shell-completion/bash/coredumpctl @@ -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 |