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
|
#! zsh
|
||||||
export FZF_CTRL_R_OPTS="--sort"
|
if [[ -f ~/.fzf.zsh ]]; then
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
export FZF_CTRL_R_OPTS="--sort"
|
||||||
|
source ~/.fzf.zsh
|
||||||
|
else
|
||||||
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue