[zsh] Rename init_env_fpath -> init-env-fpath
This commit is contained in:
parent
ae6fd37cf9
commit
b5e8617cd8
1 changed files with 6 additions and 4 deletions
10
zshenv
10
zshenv
|
@ -5,18 +5,20 @@ unsetopt GLOBAL_RCS
|
||||||
|
|
||||||
export SYS=`uname -s | tr A-Z a-z`
|
export SYS=`uname -s | tr A-Z a-z`
|
||||||
|
|
||||||
init_env_fpath() {
|
function init-env-fpath
|
||||||
|
{
|
||||||
local user_fpath=("$HOME/.zsh/func")
|
local user_fpath=("$HOME/.zsh/func")
|
||||||
|
|
||||||
if [[ "$SYS" == "darwin" ]]; then
|
local sys_fpath="$HOME/.zsh/func/$SYS"
|
||||||
user_fpath=($user_fpath "$HOME/.zsh/func/darwin")
|
if [[ -d "$sys_fpath" ]]; then
|
||||||
|
user_fpath+=($sys_fpath)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fpath=($user_fpath $fpath)
|
fpath=($user_fpath $fpath)
|
||||||
export FPATH
|
export FPATH
|
||||||
}
|
}
|
||||||
|
|
||||||
init_env_fpath
|
init-env-fpath
|
||||||
|
|
||||||
autoload -Uz do_init_functions
|
autoload -Uz do_init_functions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue