From 6ada82a506fb5c330260061d1694e1e7e282e7b1 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Wed, 5 Aug 2020 00:36:04 +0000 Subject: [PATCH] add default fzf install path to zshrc --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index a761d3b..42ea5ce 100644 --- a/.zshrc +++ b/.zshrc @@ -96,7 +96,12 @@ if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then fi [ -f ~/.fzf.bash ] && source ~/.fzf.bash -export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null' + + +[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh +[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh + +export FZF_DEFAULT_COMMAND='rg --files --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" #bind -x '"\C-p": vim $(fzf);'