From 0128edd6e805a93d99bec2dc78b0213aacd92304 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 4 Dec 2018 02:11:32 +0000 Subject: [PATCH] Keep command exists checks consistent --- zsh-peco-history.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-peco-history.zsh b/zsh-peco-history.zsh index 332dada..8f8c02e 100644 --- a/zsh-peco-history.zsh +++ b/zsh-peco-history.zsh @@ -10,7 +10,7 @@ # # Based on: https://github.com/mooz/percol#zsh-history-search -if which peco &> /dev/null; then +if (( $+commands[peco] )); then function peco_select_history() { local parse_cmd