summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorArvid Norlander <VorpalBlade@users.noreply.github.com>2022-04-06 17:23:48 +0200
committerTavian Barnes <tavianator@tavianator.com>2022-04-21 19:38:25 -0400
commit7f37e4131c24c08e0575db06ccf7ea986c4cc190 (patch)
treef099d3c719037ad876941a1914e73f82fc7ec02f /Makefile
parentf2cb2215213c0d831a697b0b440f78d9ad5c2b83 (diff)
downloadbfs-7f37e4131c24c08e0575db06ccf7ea986c4cc190.tar.xz
Add basic zsh completion
Fixes #32.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bfd5e37..459a406 100644
--- a/Makefile
+++ b/Makefile
@@ -283,10 +283,13 @@ install:
$(INSTALL) -m644 bfs.1 $(DESTDIR)$(MANDIR)/man1/bfs.1
$(MKDIR) $(DESTDIR)$(PREFIX)/share/bash-completion/completions
$(INSTALL) -m644 completions/bfs.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/bfs
+ $(MKDIR) $(DESTDIR)$(PREFIX)/share/zsh/site-functions
+ $(INSTALL) -m644 completions/bfs.zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_bfs
.PHONY: install
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/share/bash-completion/completions/bfs
+ $(RM) $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_bfs
$(RM) $(DESTDIR)$(MANDIR)/man1/bfs.1
$(RM) $(DESTDIR)$(PREFIX)/bin/bfs
.PHONY: uninstall