Skip to content

Commit 8781779

Browse files
authored
Update init.bat
If CMDER_CONFIGURED==1 skip to :CMDER_CONFIGURED
1 parent 31c019b commit 8781779

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

vendor/init.bat

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ call "%cmder_root%\vendor\lib\lib_console"
5151
call "%cmder_root%\vendor\lib\lib_git"
5252
call "%cmder_root%\vendor\lib\lib_profile"
5353

54-
:: if "%CMDER_CONFIGURED%" == "1" (
55-
:: echo Cmder is already configured, skipping to user config!
56-
::
57-
:: goto USER_CONFIG_START
58-
:: )
59-
6054
:var_loop
6155
if "%~1" == "" (
6256
goto :start
@@ -173,9 +167,9 @@ if "%CMDER_CLINK%" == "1" (
173167
)
174168

175169
if "%CMDER_CONFIGURED%" == "1" (
176-
echo Cmder is already configured, skipping to user config!
170+
echo Cmder is already configured, skipping Cmder Init!
177171

178-
goto USER_CONFIG_START
172+
goto CMDER_CONFIGURED
179173
)
180174

181175
:: Prepare for git-for-windows
@@ -393,6 +387,8 @@ if "%CMDER_ALIASES%" == "1" if exist "%CMDER_ROOT%\bin\alias.bat" if exist "%CMD
393387
)
394388

395389
set initialConfig=
390+
391+
:CMDER_CONFIGURED
396392
set CMDER_CONFIGURED=1
397393

398394
set CMDER_INIT_END=%time%

0 commit comments

Comments
 (0)