Added profile.d like support for all supported shells

This commit is contained in:
Dax T. Games
2016-02-25 07:53:57 -06:00
parent 85ce629dde
commit 0a6b79b9ed
4 changed files with 49 additions and 0 deletions

13
vendor/cmder.sh vendored
View File

@ -35,6 +35,19 @@ PATH=${CMDER_ROOT}/bin:$PATH:${CMDER_ROOT}
export PATH
# Drop *.sh files into "%CMDER_ROOT%\config\profile.d"
# to run them at startup.
if [ ! -d ${CMDER_ROOT}/config/profile.d ] ; then
mkdir -p "${CMDER_ROOT}/config/profile.d"
fi
pushd ${CMDER_ROOT}/config/profile.d >/dev/null
for x in $(ls ${CMDER_ROOT}/config/profile.d/*.sh) ; do
# echo ${x}
. $x
done
popd >/dev/null
if [ -f ${CMDER_ROOT}/config/user-profile.sh ] ; then
. ${CMDER_ROOT}/config/user-profile.sh
else