diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-06-17 16:50:14 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-06-17 16:50:14 -0700 |
| commit | b86066b46aa19612aa0ca991aa2321d86d11b718 (patch) | |
| tree | fab0c5bc458a87513321b622cf33568d77ad841b /Makefile | |
| parent | c9343baf154e1201ed35312be5753853ca336f8f (diff) | |
| parent | f2298a5786325f994aa4d0b070ed7566c3069957 (diff) | |
Merge branch 'master' of bitbucket.org:spilt/bb
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -19,18 +19,18 @@ ifeq (, $(PICKER)) endif ifneq (, $(PICKER)) PICKER_FLAG=-D"PICK(prompt, initial)=\"$(PICKER)\"" -endif -ifeq ($(shell which $(PICKER)),$(shell which fzy || echo '<none>')) - PICKER_FLAG=-D'PICK(prompt, initial)="{ printf \"\\033[3A\" >/dev/tty; fzy --lines=3 --prompt=\"" prompt "\" --query=\"" initial "\"; }"' -endif -ifeq ($(shell which $(PICKER)),$(shell which fzf || echo '<none>')) - PICKER_FLAG=-D'PICK(prompt, initial)="{ printf \"\\033[3A\" >/dev/tty; fzf --height=4 --prompt=\"" prompt "\" --query=\"" initial "\"; }"' -endif -ifeq ($(shell which $(PICKER)),$(shell which ask || echo '<none>')) - PICKER_FLAG=-D'PICK(prompt, initial)="ask --prompt=\"" prompt "\" --query=\"" initial "\""' -endif -ifeq ($(shell which $(PICKER)),$(shell which pick || echo '<none>')) - PICKER_FLAG=-D'PICK(prompt, initial)="pick -q \"" initial "\""' + ifeq ($(shell which $(PICKER)),$(shell which fzy 2>/dev/null || echo '<none>')) + PICKER_FLAG=-D'PICK(prompt, initial)="{ printf \"\\033[3A\" >/dev/tty; fzy --lines=3 --prompt=\"" prompt "\" --query=\"" initial "\"; }"' + endif + ifeq ($(shell which $(PICKER)),$(shell which fzf 2>/dev/null || echo '<none>')) + PICKER_FLAG=-D'PICK(prompt, initial)="{ printf \"\\033[3A\" >/dev/tty; fzf --height=4 --prompt=\"" prompt "\" --query=\"" initial "\"; }"' + endif + ifeq ($(shell which $(PICKER)),$(shell which ask 2>/dev/null || echo '<none>')) + PICKER_FLAG=-D'PICK(prompt, initial)="ask --prompt=\"" prompt "\" --query=\"" initial "\""' + endif + ifeq ($(shell which $(PICKER)),$(shell which pick 2>/dev/null || echo '<none>')) + PICKER_FLAG=-D'PICK(prompt, initial)="pick -q \"" initial "\""' + endif endif CFLAGS += $(PICKER_FLAG) |
