forked from misc/zsh-config
pztrn
297f6d82ed
* Added new app: gitinfo, for retrieving git information. * Default (and only one for this time) prompt is now using gitinfo app for showing git status in current directory.
15 lines
430 B
Bash
15 lines
430 B
Bash
# Load enabled apps.
|
|
for app in ${ENABLED_APPS[@]}; do
|
|
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
|