(( $+functions[_systemctl_unit_properties] )) ||
_systemctl_unit_properties() {
- if ( [[ ${+_sys_all_properties} -eq 0 ]] || _cache_invalid SYS_ALL_PROPERTIES$_sys_service_mgr ) ||
- ! _retrieve_cache SYS_ALL_PROPERTIES$_sys_service_mgr;
- then
- _sys_all_properties=( ${${(M)${(f)"$({{ROOTLIBEXECDIR}}/systemd --dump-bus-properties)"}}} )
- _store_cache SYS_ALL_PROPERTIES$_sys_service_mgr _sys_all_properties
- fi
- _values -s , "${_sys_all_properties[@]}"
+ local -a _sys_all_properties=( ${(f)"$({{ROOTLIBEXECDIR}}/systemd --no-pager --dump-bus-properties 2>/dev/null)"} )
+ _wanted systemd-unit-properties expl 'unit property' \
+ _values -s , "${_sys_all_properties[@]}"
}
(( $+functions[_systemctl_job_modes] )) ||