summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorŠtěpán Němec <stepnem@smrk.net>2024-02-27 14:36:57 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-02-27 14:50:15 +0100
commitda9e1f83222e618595279b3168473dfaa150ddb8 (patch)
tree93d2092ec0321c3ed71bdd2432da7f59d99abf71 /shell-completion
parentupdate TODO (diff)
downloadsystemd-da9e1f83222e618595279b3168473dfaa150ddb8.tar.xz
systemd-da9e1f83222e618595279b3168473dfaa150ddb8.zip
zsh/_journalctl: complete -g, --case-sensitive, 'help' (pseudo-)facility
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_journalctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl
index 9c132b8731..61a52afddf 100644
--- a/shell-completion/zsh/_journalctl
+++ b/shell-completion/zsh/_journalctl
@@ -59,7 +59,7 @@ _journalctl_boots() {
(( $+functions[_journalctl_facilities] )) ||
_journalctl_facilities() {
local -a _journalctl_facilities
- _journalctl_facilities=(kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7)
+ _journalctl_facilities=(help kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7)
_describe 'possible values' _journalctl_facilities
}
@@ -124,6 +124,8 @@ _arguments -s \
'--after-cursor=[Start showing entries from after the specified cursor]:cursors:_journalctl_field_values __CURSORS' \
'--since=[Start showing entries on or newer than the specified date]:YYYY-MM-DD HH\:MM\:SS' \
'--until=[Stop showing entries on or older than the specified date]:YYYY-MM-DD HH\:MM\:SS' \
+ {-g+,--grep=}'[Show entries with MESSAGE field matching PCRE pattern]' \
+ '--case-sensitive=[Force case sensitive or insensitive matching]:boolean:(true false)' \
{-F,--field=}'[List all values a certain field takes]:Fields:_journalctl_fields' \
'--system[Show system and kernel messages]' \
'--user[Show messages from user services]' \