From e28dc26084f5dc65de564a6e4dddf13a239444fd Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Fri, 29 Mar 2024 17:24:16 +0100 Subject: meson: install shell files Change-Id: I7c30690e5763d095cf7444333f7b687509051c5f --- misc/bash/meson.build | 8 ++++++++ misc/fish/meson.build | 8 ++++++++ misc/meson.build | 3 +++ misc/zsh/meson.build | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 misc/bash/meson.build create mode 100644 misc/fish/meson.build create mode 100644 misc/meson.build create mode 100644 misc/zsh/meson.build (limited to 'misc') 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 -- cgit v1.2.3