Fall back on the normal history-incremental-search-backward widget if fzf is not available

This commit is contained in:
Danielle McLean 2016-10-20 09:21:27 +11:00
parent 48936c6915
commit 53e8606b27
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -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