File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,25 @@ _coredumpctl() {
3939 local i verb comps
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
42- -r --reverse -S --since -U --until'
42+ -r --reverse -S --since -U --until -D --directory -q --quiet '
4343
4444 local -A VERBS=(
45- [LIST]=' list'
45+ [LIST]=' list info '
4646 [DUMP]=' dump gdb'
4747 )
4848
4949 if __contains_word " $prev " ' --output -o' ; then
5050 comps=$( compgen -A file -- " $cur " )
5151 compopt -o filenames
52- elif __contains_word " $prev " ' --FIELD -F' ; then
52+ elif __contains_word " $prev " ' -D --directory' ; then
53+ comps=$( compgen -A directory -- " $cur " )
54+ compopt -o filenames
55+ elif __contains_word " $prev " ' --field -F' ; then
5356 comps=$( compgen -W ' ${__journal_fields[*]}' -- " $cur " )
5457 elif [[ $cur = -* ]]; then
5558 comps=${OPTS}
5659 elif __contains_word " $prev " ${VERBS[*]} &&
57- ! __contains_word ${COMP_WORDS[COMP_CWORD-2]} ' --output -o -F --field' ; then
60+ ! __contains_word ${COMP_WORDS[COMP_CWORD-2]} ' --output -o -D --directory - F --field' ; then
5861 compopt -o nospace
5962 COMPREPLY=( $( compgen -W ' ${__journal_fields[*]}' -S= -- " $cur " ) )
6063 return 0
You can’t perform that action at this time.
0 commit comments