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
|
||||
# ---------
|
||||
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
||||
if [[ ! "$PATH" == *{{ .chezmoi.homeDir }}/.fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}{{ .chezmoi.homeDir }}/.fzf/bin"
|
||||
fi
|
||||
|
||||
# Auto-completion
|
||||
# ---------------
|
||||
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.bash" 2> /dev/null
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
source "/opt/homebrew/opt/fzf/shell/key-bindings.bash"
|
||||
eval "$(fzf --bash)"
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
# Setup fzf
|
||||
# ---------
|
||||
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
||||
if [[ ! "$PATH" == *{{ .chezmoi.homeDir }}/.fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}{{ .chezmoi.homeDir }}/.fzf/bin"
|
||||
fi
|
||||
|
||||
# Auto-completion
|
||||
# ---------------
|
||||
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.zsh" 2> /dev/null
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
source "/opt/homebrew/opt/fzf/shell/key-bindings.zsh"
|
||||
source <(fzf --zsh)
|
||||
|
|
Loading…
Add table
Reference in a new issue