1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright © 2017 Zbigniew Jędrzejewski-Szmek
5 zshcompletiondir = get_option('zshcompletiondir')
6 if zshcompletiondir == ''
7 zshcompletiondir = join_paths(datadir, 'zsh/site-functions')
9 message('zsh completions: @0@'.format(zshcompletiondir))
12 if zshcompletiondir != 'no'
13 #if 0 /// elogind has a *very* short list for this...
14 # zsh_systemctl = configure_file(
15 # input : '_systemctl.in',
16 # output : '_systemctl',
17 # configuration : substs)
19 # items = [['_busctl', ''],
20 # ['_journalctl', ''],
21 # ['_systemd-analyze', ''],
22 # ['_systemd-delta', ''],
23 # ['_systemd-nspawn', ''],
25 # ['_systemd-run', ''],
27 # ['_kernel-install', ''],
28 # ['_sd_hosts_or_user_at_host', ''],
29 # ['_sd_outputmodes', ''],
30 # ['_sd_unit_files', ''],
31 # ['_sd_machines', ''],
32 # [zsh_systemctl, ''],
33 # ['_bootctl', 'ENABLE_EFI'],
34 # ['_coredumpctl', 'ENABLE_COREDUMP'],
35 # ['_hostnamectl', 'ENABLE_HOSTNAMED'],
36 # ['_localectl', 'ENABLE_LOCALED'],
37 # ['_loginctl', 'ENABLE_LOGIND'],
38 # ['_machinectl', 'ENABLE_MACHINED'],
39 # ['_networkctl', 'ENABLE_NETWORKD'],
40 # ['_systemd-inhibit', 'ENABLE_LOGIND'],
41 # ['_systemd-resolve', 'ENABLE_RESOLVE'],
42 # ['_systemd-tmpfiles', 'ENABLE_TMPFILES'],
43 # ['_timedatectl', 'ENABLE_TIMEDATED'],
45 items = [['_loginctl', ''],
50 if item[1] == '' or conf.get(item[1]) == 1
52 install_dir : zshcompletiondir)