bash-completion: journalctl: add --grep and --case-sensitive
This commit is contained in:
parent
cc2ff878fa
commit
652e39a378
|
@ -46,9 +46,9 @@ _journalctl() {
|
||||||
--flush --rotate --sync --no-hostname -N --fields'
|
--flush --rotate --sync --no-hostname -N --fields'
|
||||||
[ARG]='-b --boot -D --directory --file -F --field -t --identifier
|
[ARG]='-b --boot -D --directory --file -F --field -t --identifier
|
||||||
-M --machine -o --output -u --unit --user-unit -p --priority
|
-M --machine -o --output -u --unit --user-unit -p --priority
|
||||||
--root'
|
--root --case-sensitive'
|
||||||
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
|
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
|
||||||
--after-cursor --verify-key
|
--after-cursor --verify-key -g --grep
|
||||||
--vacuum-size --vacuum-time --vacuum-files --output-fields'
|
--vacuum-size --vacuum-time --vacuum-files --output-fields'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -86,6 +86,9 @@ _journalctl() {
|
||||||
--identifier|-t)
|
--identifier|-t)
|
||||||
comps=$(journalctl -F 'SYSLOG_IDENTIFIER' 2>/dev/null)
|
comps=$(journalctl -F 'SYSLOG_IDENTIFIER' 2>/dev/null)
|
||||||
;;
|
;;
|
||||||
|
--case-sensitive)
|
||||||
|
comps='yes no'
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue