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

14
vendor/init.bat vendored
View File

@ -88,6 +88,20 @@
@cd /d "%CMDER_START%"
)
:: Drop *.bat and *.cmd files into "%CMDER_ROOT%\config\profile.d"
:: to run them at startup.
@if not exist "%CMDER_ROOT%\config\profile.d" (
mkdir "%CMDER_ROOT%\config\profile.d"
}
@pushd "%CMDER_ROOT%\config\profile.d"
for /f "usebackq" %%x in ( `dir /b *.bat *.cmd` ) do (
REM @echo Calling %CMDER_ROOT%\config\profile.d\%%x...
@call %%x
)
@popd
@if exist "%CMDER_ROOT%\config\user-profile.cmd" (
@rem create this file and place your own command in there
call "%CMDER_ROOT%\config\user-profile.cmd"