From d71070167f06b9f6f0a8ac20b15b9f8dd78210c8 Mon Sep 17 00:00:00 2001 From: Tri Vo Khac Date: Thu, 4 May 2023 00:33:53 +0700 Subject: [PATCH] chore: correct setting for fzf on brew --- zsh/.config/zsh/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index cc03230..94dafb6 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -53,7 +53,11 @@ repos=( plugin-load $repos # FZF -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +if [ -f ~/.fzf.zsh ]; then + source ~/.fzf.zsh +elif [ -x `command -v brew` ]; then + $(brew --prefix)/opt/fzf/install --no-bash --key-bindings --completion --no-update-rc 1> /dev/null +fi # Clean startup prompt ! [ -f ~/.hushlogin ] && touch ~/.hushlogin