[zsh] Move func/ directory to zsh/functions
This commit is contained in:
parent
91da2fc583
commit
7c08c5131f
53 changed files with 1 additions and 1 deletions
18
zsh/functions/init_rc_fpath_darwin
Normal file
18
zsh/functions/init_rc_fpath_darwin
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
autoload binary_exists
|
||||
autoload homebrew-prefix
|
||||
|
||||
function init_rc_fpath_darwin
|
||||
{
|
||||
if binary_exists brew; then
|
||||
local brew_fpath="$(homebrew-prefix)/share/zsh/site-functions"
|
||||
if [[ -d "$brew_fpath" ]]; then
|
||||
fpath+=($brew_fpath)
|
||||
fi
|
||||
|
||||
export FPATH
|
||||
fi
|
||||
}
|
||||
|
||||
init_rc_fpath_darwin "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue