update fzf for darwin
This commit is contained in:
parent
4ea9a80e36
commit
927415e25f
2 changed files with 6 additions and 18 deletions
|
@ -1,13 +1,7 @@
|
||||||
# Setup fzf
|
# Setup fzf
|
||||||
# ---------
|
# ---------
|
||||||
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
if [[ ! "$PATH" == *{{ .chezmoi.homeDir }}/.fzf/bin* ]]; then
|
||||||
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
PATH="${PATH:+${PATH}:}{{ .chezmoi.homeDir }}/.fzf/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Auto-completion
|
eval "$(fzf --bash)"
|
||||||
# ---------------
|
|
||||||
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.bash" 2> /dev/null
|
|
||||||
|
|
||||||
# Key bindings
|
|
||||||
# ------------
|
|
||||||
source "/opt/homebrew/opt/fzf/shell/key-bindings.bash"
|
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
# Setup fzf
|
# Setup fzf
|
||||||
# ---------
|
# ---------
|
||||||
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
if [[ ! "$PATH" == *{{ .chezmoi.homeDir }}/.fzf/bin* ]]; then
|
||||||
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
PATH="${PATH:+${PATH}:}{{ .chezmoi.homeDir }}/.fzf/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Auto-completion
|
source <(fzf --zsh)
|
||||||
# ---------------
|
|
||||||
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.zsh" 2> /dev/null
|
|
||||||
|
|
||||||
# Key bindings
|
|
||||||
# ------------
|
|
||||||
source "/opt/homebrew/opt/fzf/shell/key-bindings.zsh"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue