aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-11-30 11:51:58 -0500
committerFurkan Sahin <furkan-dev@proton.me>2017-11-30 11:51:58 -0500
commit0acc9c7f68e7483cadc3f5c2dbc6f8d54058f6dc (patch)
treed6a6c55fc4769a7d69816e0e2950cc2808bf11a6 /meson.build
parenta1a1b29142a077b8d2c56bf527afb0aa53282a70 (diff)
meson zsh completions install
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1c322131..05d92a91 100644
--- a/meson.build
+++ b/meson.build
@@ -131,3 +131,15 @@ if (get_option('default_wallpaper'))
install_data(wallpaper_files, install_dir: wallpaper_install_dir)
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