summaryrefslogtreecommitdiff
path: root/shell-completion/zsh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-30 22:32:09 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-30 22:32:09 +0200
commit23a749f2857088547c8ef3966e96b37c71510a1b (patch)
treea3739420ab6e9a18e997b3b54e179c9b1905d21c /shell-completion/zsh
parent6ed796c827f7e89a7900713b132301bced1a73c6 (diff)
parent4ed2f1b1f106b84276eaf8cc4d27cca54653845e (diff)
Merge pull request #1419 from keszybz/shell-completion
Shell completion tweaks
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r--shell-completion/zsh/_systemctl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 4bf306aacb..96f51a0ee0 100644
--- a/shell-completion/zsh/_systemctl.in
+++ b/shell-completion/zsh/_systemctl.in
@@ -334,13 +334,13 @@ _systemctl_caching_policy()
_unit_states() {
local -a _states
- _states=(loaded failed active inactive not-found listening running waiting plugged mounted exited dead masked)
+ _states=("${(fo)$(__systemctl --state=help)}")
_values -s , "${_states[@]}"
}
_unit_types() {
local -a _types
- _types=(automount busname device mount path service snapshot socket swap target timer)
+ _types=("${(fo)$(__systemctl -t help)}")
_values -s , "${_types[@]}"
}