19 lines
530 B
Bash
19 lines
530 B
Bash
typeset -g globaldots_path="${HOME}/.global"
|
|
if [[ -a $(realpath -m $(dirname $0)/../../.globaldir ) ]]
|
|
then
|
|
typeset -g globaldots_path=$(realpath -m $(dirname $0)/../../)
|
|
fi
|
|
|
|
if [[ -n ${GLOBALDOTS_PATH} ]]
|
|
then
|
|
typeset -g globaldots_path=${GLOBALDOTS_PATH}
|
|
fi
|
|
|
|
if [[ -z $globaldots_path ]]; then
|
|
echo 'functions require $globaldots_path to be set!'
|
|
fi
|
|
|
|
autoload global_path_expand global_fpath_expand global_set_useropts \
|
|
global_configure global_config_setup global_boot
|
|
fpath+=(${zshlibs_install}/global)
|