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
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -81,7 +81,7 @@ 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', 'completions')
fish_compdir = join_paths(datadir, 'fish', 'vendor_completions.d')
endif
install_data(bash_completion, install_dir: bash_compdir)