[systemd-devel] [PATCH] zsh_completion: Correctly display journal fields

William Giokas 1007380 at gmail.com
Mon Aug 12 10:11:13 PDT 2013


---
 shell-completion/zsh/_journalctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl
index 61983d5..32708f5 100644
--- a/shell-completion/zsh/_journalctl
+++ b/shell-completion/zsh/_journalctl
@@ -19,7 +19,7 @@ _list_fields() {
                     _KERNEL_{DEVICE,SUBSYSTEM}
                     _UDEV_{SYSNAME,DEVNODE,DEVLINK}
                     __CURSOR __{REALTIME,MONOTONIC}_TIMESTAMP)
-    _describe 'possible fields' journal_fields
+    _values -s '=' 'possible fields' "${journal_fields[@]}:value:"
 }
 
 _journal_none() {
-- 
1.8.4.rc2.458.gc9b7461



More information about the systemd-devel mailing list