[zsh] Implement a homebrew-prefix function and use it when setting up fpath
# Conflicts: # zshrc
This commit is contained in:
parent
a2bf66480c
commit
ddf3de5a80
3 changed files with 23 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
autoload -Uz binary_exists
|
||||
autoload binary_exists
|
||||
autoload homebrew-prefix
|
||||
|
||||
function init_rc_fpath_darwin
|
||||
{
|
||||
if binary_exists brew; then
|
||||
local brew_fpath="$(brew --prefix)/share/zsh/site-functions"
|
||||
local brew_fpath="$(homebrew-prefix)/share/zsh/site-functions"
|
||||
if [[ -d "$brew_fpath" ]]; then
|
||||
fpath+=($brew_fpath)
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue