mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
zsh: correct journalctl command completion parsing
(cherry picked from commit 45b156c1559da468f1c12aa5170858574c9b5831) (cherry picked from commit 42fab2d454a33f11d545db1d5e90d73deaf4dd9e) (cherry picked from commit 2d0e391967ac53e1b011c63304c7ade98a3797c7)
This commit is contained in:
parent
fec0bb6df4
commit
342dc4c15f
@ -26,11 +26,11 @@ _journalctl_fields() {
|
|||||||
_journalctl_none() {
|
_journalctl_none() {
|
||||||
local -a _commands _files _jrnl_none
|
local -a _commands _files _jrnl_none
|
||||||
# Setting use-cache will slow this down considerably
|
# Setting use-cache will slow this down considerably
|
||||||
_commands=( ${"$(_call_program commands "$service $_sys_service_mgr -F _EXE" 2>/dev/null)"} )
|
_commands=( ${(f)"$(_call_program commands "$service $_sys_service_mgr -F _EXE" 2>/dev/null)"} )
|
||||||
_jrnl_none='yes'
|
_jrnl_none='yes'
|
||||||
_alternative : \
|
_alternative : \
|
||||||
'files:/dev files:_files -W /dev -P /dev/' \
|
'files:/dev files:_files -W /dev -P /dev/' \
|
||||||
"commands:commands:($_commands[@])" \
|
'commands:commands:compadd -a _commands' \
|
||||||
'fields:fields:_journalctl_fields'
|
'fields:fields:_journalctl_fields'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user