16 lines
669 B
Plaintext
16 lines
669 B
Plaintext
|
function zconfigs_local_load()
|
||
|
{
|
||
|
if [[ ! -a ${zconfig_local_path} ]]; then
|
||
|
zshlibs_log zconfig "local config missing, recreating from '${zconfig_shared_path}/zshconfig.example'"
|
||
|
mkdir -p -m 700 "${zconfig_local_path}"
|
||
|
cp ${zconfig_shared_path}/zshconfig.example ${zconfig_local_path}/local.config.zsh
|
||
|
fi
|
||
|
if [[ ! -d ${zconfig_local_path} ]]; then
|
||
|
zshlibs_log zconfig "local config appears to be a file, loading '${zconfig_local_path}'"
|
||
|
zconfig_checkload ${zconfig_local_path}
|
||
|
else
|
||
|
zshlibs_log zconfig "local config is a directory, loading '${zconfig_local_path}/*.config.zsh'"
|
||
|
zconfigs_load ${zconfig_local_path}/*.config.zsh;
|
||
|
fi
|
||
|
}
|