fix: do not update rc for fzf
This commit is contained in:
parent
646bafb8d5
commit
09b67944f9
@ -10,9 +10,12 @@ export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|||||||
|
|
||||||
### FZF ###
|
### FZF ###
|
||||||
if ! [[ -r "${HOME}/.fzf" ]]; then
|
if ! [[ -r "${HOME}/.fzf" ]]; then
|
||||||
|
printf "Installing FZF\n" >&2
|
||||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||||
~/.fzf/install --key-bindings --completion
|
~/.fzf/install --key-bindings --completion --no-update-rc
|
||||||
|
else
|
||||||
|
[[ -f "${HOME}/.fzf.zsh" ]] && source "${HOME}/.fzf.zsh"
|
||||||
|
fi
|
||||||
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git --color=always'
|
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_DEFAULT_OPTS="--height=80% --layout=reverse --info=inline --border --margin=1 --ansi"
|
||||||
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
|
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
|
||||||
|
Loading…
Reference in New Issue
Block a user