]>
Commit | Line | Data |
---|---|---|
5c23128d ZJS |
1 | zshcompletiondir = get_option('zshcompletiondir') |
2 | if zshcompletiondir == '' | |
37efbbd8 | 3 | zshcompletiondir = join_paths(datadir, 'zsh/site-functions') |
5c23128d | 4 | |
37efbbd8 | 5 | message('zsh completions: @0@'.format(zshcompletiondir)) |
5c23128d ZJS |
6 | endif |
7 | ||
8 | if zshcompletiondir != 'no' | |
37efbbd8 ZJS |
9 | zsh_systemctl = configure_file( |
10 | input : '_systemctl.in', | |
11 | output : '_systemctl', | |
12 | configuration : substs) | |
5c23128d | 13 | |
37efbbd8 ZJS |
14 | items = [['_busctl', ''], |
15 | ['_journalctl', ''], | |
16 | ['_systemd-analyze', ''], | |
17 | ['_systemd-delta', ''], | |
18 | ['_systemd-nspawn', ''], | |
19 | ['_systemd', ''], | |
20 | ['_systemd-run', ''], | |
21 | ['_udevadm', ''], | |
22 | ['_kernel-install', ''], | |
23 | ['_sd_hosts_or_user_at_host', ''], | |
24 | ['_sd_outputmodes', ''], | |
25 | ['_sd_unit_files', ''], | |
26 | ['_sd_machines', ''], | |
27 | [zsh_systemctl, ''], | |
28 | ['_bootctl', 'ENABLE_EFI'], | |
29 | ['_coredumpctl', 'ENABLE_COREDUMP'], | |
30 | ['_hostnamectl', 'ENABLE_HOSTNAMED'], | |
31 | ['_localectl', 'ENABLE_LOCALED'], | |
32 | ['_loginctl', 'ENABLE_LOGIND'], | |
33 | ['_machinectl', 'ENABLE_MACHINED'], | |
34 | ['_networkctl', 'ENABLE_NETWORKD'], | |
35 | ['_systemd-inhibit', 'ENABLE_LOGIND'], | |
36 | ['_systemd-resolve', 'ENABLE_RESOLVED'], | |
37 | ['_systemd-tmpfiles', 'ENABLE_TMPFILES'], | |
38 | ['_timedatectl', 'ENABLE_TIMEDATED'], | |
39 | ] | |
5c23128d | 40 | |
37efbbd8 | 41 | foreach item : items |
349cc4a5 | 42 | if item[1] == '' or conf.get(item[1]) == 1 |
37efbbd8 ZJS |
43 | install_data(item[0], |
44 | install_dir : zshcompletiondir) | |
45 | endif | |
46 | endforeach | |
5c23128d | 47 | endif |