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