diff --git a/scripts/fzf-bash-history.sh b/scripts/fzf-bash-history.sh index 16d1c85..d52ec6f 100644 --- a/scripts/fzf-bash-history.sh +++ b/scripts/fzf-bash-history.sh @@ -23,7 +23,7 @@ function __search-history { READLINE_POINT=$((0 + ${#command})) } -if [[ "$-" == *i* ]] && which fzf &>/dev/null; then +if [[ "$-" == *i* ]] && $(which fzf &>/dev/null); then bind -r "\C-r" bind -x '"\C-r": __search-history' fi