From 9043fe2ca9bb2c8361d2de23ecfa0ddc75cb6940 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 1 May 2018 15:10:27 +0000 Subject: [PATCH] fzf updates --- runcoms/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index c42701e..d702263 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -32,14 +32,18 @@ if type chruby > /dev/null; then chruby ruby fi -[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local" +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh if [ -e /usr/local/opt/fzf/shell/completion.zsh ]; then source /usr/local/opt/fzf/shell/key-bindings.zsh source /usr/local/opt/fzf/shell/completion.zsh +fi +if type fzf > /dev/null; then export FZF_DEFAULT_COMMAND="rg --files" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND" alias fzf=fzf-tmux fi + +[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"