fish-completion: use the correct fallback directory

fish completions should never be installed to share/fish/completions/ as
that directory is reserved exclusively for completions shipped as part
of the fish source code.

Use the same vendor_completions.d/ directory which the default fish
configuration uses.
This commit is contained in:
Eli Schwartz 2020-01-21 21:39:26 -05:00
parent bf46e4de70
commit d21d040663
Failed to generate hash of commit

View file

@ -81,7 +81,7 @@ fish_comp = dependency('fish', required: false)
if fish_comp.found() if fish_comp.found()
fish_compdir = fish_comp.get_pkgconfig_variable('completionsdir') fish_compdir = fish_comp.get_pkgconfig_variable('completionsdir')
else else
fish_compdir = join_paths(datadir, 'fish', 'completions') fish_compdir = join_paths(datadir, 'fish', 'vendor_completions.d')
endif endif
install_data(bash_completion, install_dir: bash_compdir) install_data(bash_completion, install_dir: bash_compdir)