summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-28 08:41:04 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-05-28 11:14:49 +0200
commitdd74faef7a6b8448f53eeb055809bc8ea9ae82f5 (patch)
treeca8aa8447c8e0e5e27dfa459c1bbbb9f1ec49250 /shell-completion
parentbash-completion: suggest bus properties instead of configuration items for 's... (diff)
downloadsystemd-dd74faef7a6b8448f53eeb055809bc8ea9ae82f5.tar.xz
systemd-dd74faef7a6b8448f53eeb055809bc8ea9ae82f5.zip
zsh-completion: suggest bus properties instead of configuration items for 'systemctl -p'
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_systemctl.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 6957a848c3..000b58560b 100644
--- a/shell-completion/zsh/_systemctl.in
+++ b/shell-completion/zsh/_systemctl.in
@@ -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[@]}"