From 53e8606b2754b89f71ae2c9d38132cc459245858 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 20 Oct 2016 09:21:27 +1100 Subject: [PATCH] Fall back on the normal history-incremental-search-backward widget if fzf is not available --- config/zsh/interactive/fzf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/zsh/interactive/fzf b/config/zsh/interactive/fzf index ba73f00..a110e76 100644 --- a/config/zsh/interactive/fzf +++ b/config/zsh/interactive/fzf @@ -1,3 +1,7 @@ #! zsh -export FZF_CTRL_R_OPTS="--sort" -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +if [[ -f ~/.fzf.zsh ]]; then + export FZF_CTRL_R_OPTS="--sort" + source ~/.fzf.zsh +else + bindkey '^R' history-incremental-search-backward +fi