summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2018-01-14 17:23:00 +0000
committerLudovic Courtès <ludo@gnu.org>2018-01-16 16:00:20 +0100
commitb83fc85f9f40d9a5dff5b0d3ef38c1b93bd4c7e3 (patch)
tree2c5474f44498bb0ad809a30df96b723857bb9702 /configure.ac
parent889b4af7d89a8ce0f05e210b6bd2212f787659a4 (diff)
downloadguix-b83fc85f9f40d9a5dff5b0d3ef38c1b93bd4c7e3.tar.gz
etc: Add completions for fish.
* etc/completion/fish/guix.fish: New file.
* Makefile.am: Register the file.
* configure.ac: Add the fish vendor-completions directory.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 53efa4a684..1e39122483 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,13 @@ AC_ARG_WITH([zsh-completion-dir],
   [zshcompletiondir='${datadir}/zsh/site-functions'])
 AC_SUBST([zshcompletiondir])
 
+AC_ARG_WITH([fish-completion-dir],
+  AC_HELP_STRING([--with-fish-completion-dir=DIR],
+    [name of the Fish completion directory]),
+  [fishcompletiondir="$withval"],
+  [fishcompletiondir='${datadir}/fish/vendor_completions.d'])
+AC_SUBST([fishcompletiondir])
+
 dnl Better be verbose.
 AC_MSG_CHECKING([for the store directory])
 AC_MSG_RESULT([$storedir])