- Call "brew shellenv" to set all relevant environment variables,
- and use "$HOMEBREW_PREFIX" when looking for installed files.
# autojump.zshrc: Initialize "autojump"
for script (
+ "$HOMEBREW_PREFIX/etc/profile.d/autojump.sh"
"/usr/local/etc/profile.d/autojump.sh"
"/usr/share/autojump/autojump.zsh"
); do
# Search for and read in FZF ZSH integration files
for dir (
+ "$HOMEBREW_PREFIX"/opt/fzf/shell
/usr/local/lib/fzf/shell
/usr/local/opt/fzf/shell
/usr/local/share/examples/fzf/shell
# Make sure that "brew(1)" is installed
(( $+commands[brew] )) || return 1
-[[ -d "/usr/local/share/zsh-completions" ]] \
- && axzsh_fpath+=(/usr/local/share/zsh-completions)
+eval "$(brew shellenv)"
+
+[[ -d "$HOMEBREW_PREIX/share/zsh-completions" ]] \
+ && axzsh_fpath+=("$HOMEBREW_PREFIX/share/zsh-completions")
return 0