Skip to content

Commit

Permalink
ZSH Bindkey Ctrl-O to fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
clairvy committed Apr 11, 2020
1 parent 010be2d commit 0c01c13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .zshrc
Expand Up @@ -738,13 +738,19 @@ fi

# Settings for fzf
if whence -p fzf 2>&1 > /dev/null; then
path=($path $HOME/.fzf/bin)
if whence -p rg 2>&1 > /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git"'
fi
export FZF_DEFAULT_OPTS='--height 30% --border'
if [[ -f $HOME/.fzf.zsh ]]; then
source ~/.fzf.zsh
# replace ^R -> ^O
bindkey '^O' fzf-history-widget
if is-at-least 4.3.10; then
bindkey "^R" history-incremental-pattern-search-backward
else
bindkey "^R" history-incremental-search-backward
fi
fi
fi

Expand Down

0 comments on commit 0c01c13

Please sign in to comment.