diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-06-15 17:43:55 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-06-15 17:43:55 -0700 |
| commit | 18ea9b03508268b083ce5b73fecc819264c0171d (patch) | |
| tree | 7d13352366042473d499a057dce025e2b8c2c070 /Makefile | |
| parent | ff800b2377883f9df5b73cd5a4bb9e98141d835e (diff) | |
Silenced some error messages from `which`
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) |
