aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2024-08-21 18:20:50 +0300
committerEmery Hemingway <ehmry@posteo.net>2024-08-22 00:05:14 +0300
commitfc6339d449d9224b07174d01417a05fecedcf764 (patch)
tree5d463dd0a895b42d4d288df1a3a32017b717c5b7 /Makefile
parent7cae6732391f48b7094ff5270b42941bf97c9210 (diff)
downloadopenrussian-cli-fc6339d449d9224b07174d01417a05fecedcf764.tar.gz
Add fish shell completion
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f0bfb1b..0fd7625 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ LUA ?= lua5.2
LUAC ?= luac5.2
BASH_COMPLETIONSDIR ?= $(shell pkg-config --variable=completionsdir bash-completion)
+FISH_COMPLETIONSDIR ?= $(shell pkg-config --variable=completionsdir fish)
ZSH_COMPLETIONSDIR ?= $(PREFIX)/share/zsh/site-functions
all : openrussian openrussian-sqlite3.db
@@ -49,6 +50,10 @@ ifneq ($(BASH_COMPLETIONSDIR),)
mkdir -p $(DESTDIR)$(BASH_COMPLETIONSDIR)
cp openrussian-completion.bash $(DESTDIR)$(BASH_COMPLETIONSDIR)/openrussian
endif
+ifneq ($(FISH_COMPLETIONSDIR),)
+ mkdir -p $(DESTDIR)$(FISH_COMPLETIONSDIR)
+ cp openrussian-completion.fish $(DESTDIR)$(FISH_COMPLETIONSDIR)/openrussian.fish
+endif
ifneq ($(ZSH_COMPLETIONSDIR),)
mkdir -p $(DESTDIR)$(ZSH_COMPLETIONSDIR)
cp openrussian-completion.zsh $(DESTDIR)$(ZSH_COMPLETIONSDIR)/_openrussian