Fall back on the normal history-incremental-search-backward widget if fzf is not available
This commit is contained in:
parent
48936c6915
commit
53e8606b27
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue