From 149056033a6dc5deb0adc42f591517dcbe2d8a47 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 21 Sep 2019 21:14:59 -0700 Subject: Added support for default shell other than sh (e.g. dash, in case sh links to bash) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ccc8cec..f834406 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ ifeq ($(shell uname),Darwin) -Wno-missing-noreturn -Wno-cast-qual endif +ifneq (, $(SH)) + CFLAGS += -D'SH="$(SH)"' +endif + PICKER_FLAG= ifeq (, $(PICKER)) PICKER=$(shell sh -c "(which fzy >/dev/null 2>/dev/null && echo 'fzy') || (which fzf >/dev/null 2>/dev/null && echo 'fzf') || (which pick >/dev/null 2>/dev/null && echo 'pick') || (which ask >/dev/null 2>/dev/null && echo 'ask')") -- cgit v1.2.3