]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh-completion: _journalctl fixes (#5165)
authorllua <llua@users.noreply.github.com>
Fri, 27 Jan 2017 12:50:40 +0000 (07:50 -0500)
committerFelipe Sateler <fsateler@users.noreply.github.com>
Fri, 27 Jan 2017 12:50:40 +0000 (09:50 -0300)
allow _journalctl to work when the rcquotes option is set, broken in ba89f80620d619867b4838973785d529c5a959f6.
allow the completion of --file multiple times, which ba89f80620d619867b4838973785d529c5a959f6 claims is true.

Fixes #4842

shell-completion/zsh/_journalctl

index ef67fcf2a0dddb064b0406b5f8af52a615abc765..4a78a2e9460127ffbddf6ee5675351ec3400bc56 100644 (file)
@@ -107,8 +107,8 @@ _arguments -s \
     '--user[Show messages from user services]' \
     '(--directory -D -M --machine --root --file)'{-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
     '(--directory -D -M --machine --root --file)'{-D+,--directory=}'[Show journal files from directory]:directories:_directories' \
-    '(--directory -D -M --machine --root --file)''--root=[Operate on catalog hierarchy under specified directory]:directories:_directories' \
-    '(--directory -D -M --machine --root)--file=[Operate on specified journal files]:file:_files' \
+    '(--directory -D -M --machine --root --file)--root=[Operate on catalog hierarchy under specified directory]:directories:_directories' \
+    '(--directory -D -M --machine --root)*--file=[Operate on specified journal files]:file:_files' \
     '--new-id128[Generate a new 128 Bit ID]' \
     '--header[Show journal header information]' \
     '--disk-usage[Show total disk usage]' \