Customisable extra configuration, completion and function directories

- Add options to the autotools build to set the path for the "vendor"
   or "extra" configuration snippets, functions and completions
   directories.

 - Remove the vendor_completions directory from the Xcode build, as
   these are relocatable and compiling the paths in does not make sense.

This allows packaging tools like Homebrew and Nix to use a common
directory outside of the main prefix for third-party completions, and
to make these available for programmatic discovery through `pkg-config`.

Closes #2113
This commit is contained in:
David Adam
2016-04-04 14:33:35 +08:00
committed by Kurtis Rader
parent cb6d5d76c8
commit 484c1484c9
8 changed files with 106 additions and 49 deletions

View File

@@ -1,8 +1,8 @@
prefix=@prefix@
datadir=@datadir@
completionsdir=${datadir}/fish/vendor_completions.d
functionsdir=${datadir}/fish/vendor_functions.d
confdir=${datadir}/fish/vendor_conf.d
completionsdir=@extra_completionsdir@
functionsdir=@extra_functionsdir@
confdir=@extra_snippetsdir@
Name: fish
Description: fish, the friendly interactive shell