2015-12-26 15:33:59 +05:00
|
|
|
# Load enabled apps.
|
|
|
|
for app in ${ENABLED_APPS[@]}; do
|
2021-04-03 17:25:00 +05:00
|
|
|
if [ "${app}" = "" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2015-12-26 15:33:59 +05:00
|
|
|
if [ ! -f "${CONFIG_PATH}/zsh/apps/${app}.app.zsh" ]; then
|
|
|
|
error 0 "Application '${app}' doesn't exist"
|
|
|
|
else
|
|
|
|
source "${CONFIG_PATH}/zsh/apps/${app}.app.zsh"
|
|
|
|
# chpwd injecting.
|
|
|
|
chpwd_injector=`declare -f ${app}_chpwd`
|
|
|
|
if [ $chpwd_injector ]; then
|
|
|
|
${app}_chpwd
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
#export ${app}="${app}_main"
|
|
|
|
done
|