diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-29 17:24:16 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-29 20:10:33 +0000 |
commit | e28dc26084f5dc65de564a6e4dddf13a239444fd (patch) | |
tree | fae83dc7ad9e71d993988f311215698270d2c0f4 /misc | |
parent | 1da1f501fcf9384e9cc15405b041f3dd9bb2a51a (diff) |
meson: install shell files
Change-Id: I7c30690e5763d095cf7444333f7b687509051c5f
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash/meson.build | 8 | ||||
-rw-r--r-- | misc/fish/meson.build | 8 | ||||
-rw-r--r-- | misc/meson.build | 3 | ||||
-rw-r--r-- | misc/zsh/meson.build | 10 |
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 |