mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 03:55:11 +00:00
Use pkg-config for FISHDIR/BASHDIR
It looks like zsh doesn't have a pkg-config file so we can't use it for ZSHDIR. Fixes #179.
This commit is contained in:
parent
1537759c75
commit
625ce231e7
10
Makefile
10
Makefile
@ -1,9 +1,15 @@
|
||||
DESTDIR =
|
||||
PREFIX = /usr/local
|
||||
|
||||
BASHDIR = $(PREFIX)/etc/bash_completion.d
|
||||
override define compdir
|
||||
ifndef $(1)
|
||||
$(1) := $$(or $$(shell pkg-config --variable=completionsdir $(2) 2>/dev/null),$(3))
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call compdir,BASHDIR,bash-completion,$(PREFIX)/etc/bash_completion.d))
|
||||
ZSHDIR = /usr/share/zsh/vendor-completions
|
||||
FISHDIR = $(PREFIX)/share/fish/vendor_completions.d
|
||||
$(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d))
|
||||
|
||||
FEATURES ?= default
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user