From 646bafb8d53792a628ddb35935f146ea90187397 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 19:46:59 -0500 Subject: [PATCH] feat: auto-install fzf --- .config/zsh/config/profile/profile/env.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/zsh/config/profile/profile/env.zsh b/.config/zsh/config/profile/profile/env.zsh index 57b802f..59ae4f3 100644 --- a/.config/zsh/config/profile/profile/env.zsh +++ b/.config/zsh/config/profile/profile/env.zsh @@ -9,6 +9,10 @@ export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2 export ZSH_AUTOSUGGEST_STRATEGY=(history completion) ### FZF ### +if ! [[ -r "${HOME}/.fzf" ]]; then + git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf + ~/.fzf/install --key-bindings --completion + export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git --color=always' export FZF_DEFAULT_OPTS="--height=80% --layout=reverse --info=inline --border --margin=1 --ansi" export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"