zshlibs/global.zsh

19 lines
530 B
Bash
Raw Normal View History

2021-12-20 14:08:22 +00:00
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
2021-11-10 14:41:19 +00:00
if [[ -z $globaldots_path ]]; then
echo 'functions require $globaldots_path to be set!'
fi
2024-01-18 15:32:40 +00:00
autoload global_path_expand global_fpath_expand global_set_useropts \
global_configure global_config_setup global_boot
fpath+=(${zshlibs_install}/global)