]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh-completion: suggest bus properties instead of configuration items for 'systemctl -p'
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 May 2018 06:41:04 +0000 (08:41 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 May 2018 09:14:49 +0000 (18:14 +0900)
shell-completion/zsh/_systemctl.in

index 6957a848c31bf8099025983fbf0590217e8074a6..000b58560b24d79879778e9e064578d2a7c58d5d 100644 (file)
@@ -337,9 +337,7 @@ _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)"$(__systemctl show --all;
-    @rootlibexecdir@/systemd --dump-configuration-items)"}##[[:alnum:]]##=*}%%=*}
-    )
+    _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[@]}"