summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_machinectl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/zsh/_machinectl')
-rw-r--r--shell-completion/zsh/_machinectl7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell-completion/zsh/_machinectl b/shell-completion/zsh/_machinectl
index 2e5e05cfcc..026d74fca4 100644
--- a/shell-completion/zsh/_machinectl
+++ b/shell-completion/zsh/_machinectl
@@ -19,12 +19,7 @@
case $cmd in
list) msg="no options" ;;
*)
- _machines=( "${(foa)$(machinectl list | awk '{print $1}')}" )
- if [[ -n "$_machines" ]]; then
- _describe 'machines' _machines
- else
- _message 'no machines'
- fi
+ _sd_machines
esac
else
_message "no more options"