diff --git a/zsh/modules/keybinds/init.zsh b/zsh/modules/keybinds/init.zsh index aee52d5..62dc9c4 100644 --- a/zsh/modules/keybinds/init.zsh +++ b/zsh/modules/keybinds/init.zsh @@ -3,8 +3,8 @@ bindkey '^ ' autosuggest-accept # fzf # If fzf is installed, source fzf key bindings. -if (( $+commands[fzf] )); then - source <(fzf --zsh) +if [[ -x "$(command -v fzf)" ]]; then + source <(fzf --zsh) fi # Open command in $EDITOR