diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 02:50:22 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 02:50:54 +0900 |
commit | e56aa170846f62462ab967bb1bcc4a19cda13619 (patch) | |
tree | dd618370208a44d150e568f2ab5c37c149988784 | |
parent | 2de908aead1182e07851e05b9f31759fe445e4f5 (diff) | |
download | systemd-e56aa170846f62462ab967bb1bcc4a19cda13619.tar.gz |
bash-completion: coredumpctl: add --json and -n options
-rw-r--r-- | shell-completion/bash/coredumpctl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell-completion/bash/coredumpctl b/shell-completion/bash/coredumpctl index aef863b020..5fc11fdbd2 100644 --- a/shell-completion/bash/coredumpctl +++ b/shell-completion/bash/coredumpctl @@ -40,7 +40,7 @@ _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' + -A --debugger-arguments --json -n' local -A VERBS=( [LIST]='list info' @@ -58,6 +58,8 @@ _coredumpctl() { compopt -o filenames elif __contains_word "$prev" '--field -F'; then comps=$( compgen -W '${__journal_fields[*]}' -- "$cur" ) + elif __contains_word "$prev" '--json'; then + comps=$( compgen -W 'pretty short off' -- "$cur" ) elif [[ $cur = -* ]]; then comps=${OPTS} elif __contains_word "$prev" ${VERBS[*]} && |