[zsh] Move Darwin $OSBUILD, $OSVERSION, and $HWMODEL
Move them from init_env_Darwin to their own functions in the new zsh/func/darwin directory.
This commit is contained in:
parent
ace2f38ed2
commit
6276b5f40e
5 changed files with 36 additions and 7 deletions
6
zshenv
6
zshenv
|
@ -6,13 +6,13 @@ unsetopt GLOBAL_RCS
|
|||
export SYS=`uname -s | tr A-Z a-z`
|
||||
|
||||
init_env_fpath() {
|
||||
local USER_FPATH=( "$HOME/.zsh/func" )
|
||||
local user_fpath=("$HOME/.zsh/func")
|
||||
|
||||
if [[ "$SYS" == "darwin" ]]; then
|
||||
USER_FPATH=($USER_FPATH "$HOME/.zsh/func/darwin")
|
||||
user_fpath=($user_fpath "$HOME/.zsh/func/darwin")
|
||||
fi
|
||||
|
||||
fpath=($USER_FPATH $fpath)
|
||||
fpath=($user_fpath $fpath)
|
||||
}
|
||||
|
||||
init_env_fpath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue