chiark / gitweb /
zsh_completion: Move helper function to autoload
[elogind.git] / shell-completion / zsh / _localectl
index 0beed4f5c4048b637ee0e21383035db3eac31985..321e418b5089841ee37fcd5db642b67417faac32 100644 (file)
@@ -73,17 +73,11 @@ _localectl_command() {
     fi
 }
 
-_hosts_or_user_at_host() {
-  _alternative \
-    'users-hosts:: _user_at_host' \
-    'hosts:: _hosts'
-}
-
 _arguments \
     {-h,--help}'[Show this help]' \
     '--version[Show package version]' \
     "--no-convert[Don't convert keyboard mappings]" \
     '--no-pager[Do not pipe output into a pager]' \
     '--no-ask-password[Do not prompt for password]' \
-    {-H,--host=}'[Operate on remote host]:userathost:_hosts_or_user_at_host' \
+    {-H,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
     '*::localectl commands:_localectl_command'