chiark / gitweb /
zsh_completion: Speed up noncached perf of _journalctl
[elogind.git] / shell-completion / zsh / _journalctl
index 4409fd7d68246ac038d5bdbc1e5acef7278ccdc7..61983d5b6d2b374be89bbb1621be0ddb861b7e2e 100644 (file)
@@ -24,7 +24,8 @@ _list_fields() {
 
 _journal_none() {
     local -a _commands _files
-    _commands=( ${(f)"$(_call_program commands "$service" -F _EXE 2>/dev/null)"} )
+    # Setting use-cache will slow this down considerably
+    _commands=( ${"$(_call_program commands "$service" -F _EXE 2>/dev/null)"} )
     _alternative : \
         'files:/dev files:_files -W /dev -P /dev/' \
         "commands:commands:($_commands[@])" \