Update init.bat

If CMDER_CONFIGURED==1 skip to :CMDER_CONFIGURED
This commit is contained in:
Dax T Games 2020-06-09 19:41:08 -04:00 committed by GitHub
parent 31c019b7e4
commit 8781779636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
vendor/init.bat vendored
View File

@ -51,12 +51,6 @@ call "%cmder_root%\vendor\lib\lib_console"
call "%cmder_root%\vendor\lib\lib_git"
call "%cmder_root%\vendor\lib\lib_profile"
:: if "%CMDER_CONFIGURED%" == "1" (
:: echo Cmder is already configured, skipping to user config!
::
:: goto USER_CONFIG_START
:: )
:var_loop
if "%~1" == "" (
goto :start
@ -173,9 +167,9 @@ if "%CMDER_CLINK%" == "1" (
)
if "%CMDER_CONFIGURED%" == "1" (
echo Cmder is already configured, skipping to user config!
echo Cmder is already configured, skipping Cmder Init!
goto USER_CONFIG_START
goto CMDER_CONFIGURED
)
:: Prepare for git-for-windows
@ -393,6 +387,8 @@ if "%CMDER_ALIASES%" == "1" if exist "%CMDER_ROOT%\bin\alias.bat" if exist "%CMD
)
set initialConfig=
:CMDER_CONFIGURED
set CMDER_CONFIGURED=1
set CMDER_INIT_END=%time%