diff --git a/Makefile b/Makefile index 6a9a15c..d9a1585 100644 --- a/Makefile +++ b/Makefile @@ -43,11 +43,9 @@ CFLAGS += $(PICKER_FLAG) ifneq (, $(ASKER)) ifeq ($(shell which $(ASKER)),$(shell which ask 2>/dev/null || echo '')) - CFLAGS += -D'ASKECHO(prompt, initial)="ask --prompt=\"" prompt "\" --query=\"" initial "\""' - CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(ask --prompt=\"" prompt "\" --query=\"" initial "\")\""' + CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(ask --history=bb --prompt=\"" prompt "\" --query=\"" initial "\")\""' endif ifeq ($(shell which $(ASKER)),$(shell which dmenu 2>/dev/null || echo '')) - CFLAGS += -D'ASKECHO(prompt, initial)="{ printf \"" initial "\" | dmenu -p \"" prompt "\"; }"' CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(printf \"" initial "\" | dmenu -p \"" prompt "\")\""' endif endif