Created
February 24, 2022 17:44
-
-
Save bergercookie/1777cdddbfaf799c580a94b05a2c023d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/data/meson.build b/data/meson.build | |
index 464ff3a..15d4ab2 100644 | |
--- a/data/meson.build | |
+++ b/data/meson.build | |
@@ -70,19 +70,8 @@ fish_completion = configure_file( | |
configuration: conf_data | |
) | |
-bash_comp = dependency('bash-completion', required: false) | |
-if bash_comp.found() | |
- bash_compdir = bash_comp.get_pkgconfig_variable('completionsdir') | |
-else | |
- bash_compdir = join_paths(datadir, 'bash-completion', 'completions') | |
-endif | |
- | |
-fish_comp = dependency('fish', required: false) | |
-if fish_comp.found() | |
- fish_compdir = fish_comp.get_pkgconfig_variable('completionsdir') | |
-else | |
- fish_compdir = join_paths(datadir, 'fish', 'vendor_completions.d') | |
-endif | |
+bash_compdir = join_paths(datadir, 'bash-completion', 'completions') | |
+fish_compdir = join_paths(datadir, 'fish', 'vendor_completions.d') | |
install_data(bash_completion, install_dir: bash_compdir) | |
install_data(zsh_completion, install_dir: join_paths(datadir, 'zsh', 'site-functions')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment