From 5badf05f39cdf2807b3b99ee8a499058056a0361 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Tue, 14 Feb 2017 23:08:46 +0900 Subject: shell_completion: Add -r option for coredumpctl --- shell-completion/bash/coredumpctl | 3 ++- shell-completion/zsh/_coredumpctl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'shell-completion') diff --git a/shell-completion/bash/coredumpctl b/shell-completion/bash/coredumpctl index 6091677506..d34f89e2bb 100644 --- a/shell-completion/bash/coredumpctl +++ b/shell-completion/bash/coredumpctl @@ -37,7 +37,8 @@ __journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC} _coredumpctl() { local i verb comps 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' + local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1 + -r --reverse' local -A VERBS=( [LIST]='list' diff --git a/shell-completion/zsh/_coredumpctl b/shell-completion/zsh/_coredumpctl index e4c04a697f..64b44c1214 100644 --- a/shell-completion/zsh/_coredumpctl +++ b/shell-completion/zsh/_coredumpctl @@ -32,6 +32,7 @@ _arguments \ {-o+,--output=}'[Write output to FILE]:output file:_files' \ {-F+,--field=}'[Show field in list output]:field' \ '-1[Show information about most recent entry only]' \ + {-r,--reverse}'[Show the newest entries first]' \ '--no-pager[Do not pipe output into a pager]' \ '--no-legend[Do not print the column headers]' \ {-h,--help}'[Show this help]' \ -- cgit v1.2.3-54-g00ecf