aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Eli Schwartz <eschwartz@archlinux.org>2020-01-21 23:05:43 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-01-22 13:30:53 -0500
commit0515c15bb9150e528d0d06e49484f097e5381ab9 (patch)
treeae0cd4042800a9ed47dc767466dbf04ab94f7d98
parentcompletion: use pkg-config to get install location for bash/fish (diff)
downloadsway-0515c15bb9150e528d0d06e49484f097e5381ab9.tar.gz
sway-0515c15bb9150e528d0d06e49484f097e5381ab9.tar.zst
sway-0515c15bb9150e528d0d06e49484f097e5381ab9.zip
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.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5769da35..500a133a 100644
--- a/meson.build
+++ b/meson.build
@@ -280,7 +280,7 @@ if get_option('fish-completions')
280 if fish_comp.found() 280 if fish_comp.found()
281 fish_install_dir = fish_comp.get_pkgconfig_variable('completionsdir') 281 fish_install_dir = fish_comp.get_pkgconfig_variable('completionsdir')
282 else 282 else
283 fish_install_dir = join_paths(datadir, 'fish', 'completions') 283 fish_install_dir = join_paths(datadir, 'fish', 'vendor_completions.d')
284 endif 284 endif
285 285
286 install_data(fish_files, install_dir: fish_install_dir) 286 install_data(fish_files, install_dir: fish_install_dir)