mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
meson zsh completions install
This commit is contained in:
parent
1d702b6376
commit
fe5c031609
12
meson.build
12
meson.build
|
@ -131,3 +131,15 @@ if (get_option('default_wallpaper'))
|
||||||
|
|
||||||
install_data(wallpaper_files, install_dir: wallpaper_install_dir)
|
install_data(wallpaper_files, install_dir: wallpaper_install_dir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if (get_option('zsh_completions'))
|
||||||
|
zsh_files = files(
|
||||||
|
'completions/zsh/_sway',
|
||||||
|
'completions/zsh/_swaygrab',
|
||||||
|
'completions/zsh/_swaylock',
|
||||||
|
'completions/zsh/_swaymsg',
|
||||||
|
)
|
||||||
|
zsh_install_dir = datadir + '/zsh/site-functions'
|
||||||
|
|
||||||
|
install_data(zsh_files, install_dir: zsh_install_dir)
|
||||||
|
endif
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.')
|
option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.')
|
||||||
option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
|
option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
|
||||||
|
option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')
|
||||||
|
|
Loading…
Reference in a new issue