Revert auto completion installation attempt.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
parent
bf3ec63f76
commit
baaefc6b5d
15
Makefile
15
Makefile
@ -3,11 +3,7 @@ BINDIR ?= $(DESTDIR)$(PREFIX)/bin
|
||||
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
|
||||
|
||||
BASHCOMPDIR = $(DESTDIR)/etc/bash_completion.d
|
||||
FISHCOMPDIR = $(DESTDIR)/usr/share/fish/vendor_completions.d
|
||||
ZSHCOMPDIR = $(DESTDIR)/usr/share/zsh/site-functions
|
||||
|
||||
.PHONY: all install install.comp uninstall uninstall.comp
|
||||
.PHONY: all install uninstall
|
||||
|
||||
all:
|
||||
|
||||
@ -21,16 +17,7 @@ install:
|
||||
install -m644 README.md $(DOCDIR)
|
||||
rm -f buku.1.gz
|
||||
|
||||
install.comp:
|
||||
install -m755 -d $(BASHCOMPDIR) $(FISHCOMPDIR) $(ZSHCOMPDIR)
|
||||
install -m644 auto-completion/bash/buku-completion.bash $(BASHCOMPDIR)
|
||||
install -m644 auto-completion/fish/buku.fish $(FISHCOMPDIR)
|
||||
install -m644 auto-completion/zsh/_buku $(ZSHCOMPDIR)
|
||||
|
||||
uninstall:
|
||||
rm -f $(BINDIR)/buku
|
||||
rm -f $(MANDIR)/buku.1.gz
|
||||
rm -rf $(DOCDIR)
|
||||
|
||||
uninstall.comp:
|
||||
rm -f $(BASHCOMPDIR)/buku-completion.bash $(FISHCOMPDIR)/buku.fish $(ZSHCOMPDIR)/_buku
|
||||
|
11
README.md
11
README.md
@ -89,16 +89,7 @@ To remove, run:
|
||||
|
||||
## Shell completion
|
||||
|
||||
Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion).
|
||||
|
||||
Install shell completion scripts:
|
||||
|
||||
$ sudo make install.comp
|
||||
|
||||
Remove shell completion scripts:
|
||||
|
||||
$ sudo make uninstall.comp
|
||||
`DESTDIR` is supported.
|
||||
Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion). Please refer to your shell's manual for installation instructions.
|
||||
|
||||
## Installing with a package manager
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user