mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 06:37:54 +08:00
Added profile.d like support for all supported shells
This commit is contained in:
13
vendor/cmder.sh
vendored
13
vendor/cmder.sh
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user