aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/bash/meson.build8
-rw-r--r--misc/fish/meson.build8
-rw-r--r--misc/meson.build3
-rw-r--r--misc/zsh/meson.build10
4 files changed, 29 insertions, 0 deletions
diff --git a/misc/bash/meson.build b/misc/bash/meson.build
new file mode 100644
index 000000000..75acce2ea
--- /dev/null
+++ b/misc/bash/meson.build
@@ -0,0 +1,8 @@
+configure_file(
+ input : 'completion.sh',
+ output : 'nix',
+ install : true,
+ install_dir : datadir / 'bash-completion/completions',
+ install_mode : 'rw-r--r--',
+ copy : true,
+)
diff --git a/misc/fish/meson.build b/misc/fish/meson.build
new file mode 100644
index 000000000..d54de9a13
--- /dev/null
+++ b/misc/fish/meson.build
@@ -0,0 +1,8 @@
+configure_file(
+ input : 'completion.fish',
+ output : 'nix.fish',
+ install : true,
+ install_dir : datadir / 'fish/vendor_completions.d',
+ install_mode : 'rw-r--r--',
+ copy : true,
+)
diff --git a/misc/meson.build b/misc/meson.build
new file mode 100644
index 000000000..f279aeff4
--- /dev/null
+++ b/misc/meson.build
@@ -0,0 +1,3 @@
+subdir('bash')
+subdir('fish')
+subdir('zsh')
diff --git a/misc/zsh/meson.build b/misc/zsh/meson.build
new file mode 100644
index 000000000..8063a5cb8
--- /dev/null
+++ b/misc/zsh/meson.build
@@ -0,0 +1,10 @@
+foreach script : [ [ 'completion.zsh', '_nix' ], [ 'run-help-nix' ] ]
+ configure_file(
+ input : script[0],
+ output : script.get(1, script[0]),
+ install : true,
+ install_dir : datadir / 'zsh/site-functions',
+ install_mode : 'rw-r--r--',
+ copy : true,
+ )
+endforeach