summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh/zshrc/99_fzf16
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