From 70cad93b1caf6491add11c32c96a55ae0c9a92bd Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 30 Oct 2017 16:36:43 -0500 Subject: [PATCH] fzf --- runcoms/zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index 5b9e161..ab09663 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -33,3 +33,13 @@ if type chruby > /dev/null; then fi [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local" + +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 + + 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