diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-09-22 15:58:00 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-09-22 15:58:00 -0700 |
| commit | ef577177747fd0a4778b92f762e0964d0ba3aafc (patch) | |
| tree | 427ad0ebf07e39201ad9c4fc63afec35cee64ab2 /Makefile | |
| parent | c11e4bd4fa4bd298bafa8adee4f399f0fabb0643 (diff) | |
Per-ASK() history for `ask` using the __COUNTER__ macro
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ CFLAGS += $(PICKER_FLAG) ifneq (, $(ASKER)) ifeq ($(shell which $(ASKER)),$(shell which ask 2>/dev/null || echo '<none>')) - CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(ask --history=bb --prompt=\"" prompt "\" --query=\"" initial "\")\""' + CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(ask --history=bb."STRINGIFY(__COUNTER__)".hist --prompt=\"" prompt "\" --query=\"" initial "\")\""' endif ifeq ($(shell which $(ASKER)),$(shell which dmenu 2>/dev/null || echo '<none>')) CFLAGS += -D'ASK(var, prompt, initial)=var "=\"$$(printf \"" initial "\" | dmenu -p \"" prompt "\")\""' |
