diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2022-05-11 23:07:10 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2022-05-11 23:07:10 +0200 |
commit | 88717ab6db79245cf29f3c382d0ef8a45096603f (patch) | |
tree | 8c9143952e6d1f93f1c3bbce4eb94620193a55d8 /.zsh/zshrc/99_fzf | |
parent | 3cd42a0eda5b695c89e8c68d574b608d0995f51d (diff) |
zshrec: adjust fzf integration for Homebrew
Diffstat (limited to '.zsh/zshrc/99_fzf')
-rw-r--r-- | .zsh/zshrc/99_fzf | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.zsh/zshrc/99_fzf b/.zsh/zshrc/99_fzf index 86086ee..82f4aa7 100644 --- a/.zsh/zshrc/99_fzf +++ b/.zsh/zshrc/99_fzf @@ -6,10 +6,16 @@ # # Source repository: git://git.distanz.ch/dotfiles/zsh.git -path_append $HOME/.fzf/bin +FZF="${HOME}/.fzf" +# Installed using Homebrew +[ -d $FZF ] || FZF="/usr/local/opt/fzf" -# Auto-completion -[[ $- == *i* ]] && source "${HOME}/.fzf/shell/completion.zsh" 2> /dev/null +if [ -d $FZF ] ; then + path_append $FZF/bin -# Key bindings -source "${HOME}/.fzf/shell/key-bindings.zsh" + # Auto-completion + [[ $- == *i* ]] && source "${FZF}/shell/completion.zsh" 2> /dev/null + + # Key bindings + source "${FZF}/shell/key-bindings.zsh" +fi |