@@ -67,7 +67,7 @@ call "%cmder_root%\vendor\lib\lib_profile"
6767 set " max_depth = %~2 "
6868 shift
6969 ) else (
70- %lib_console% show_error " '/max_depth' requires a number between 1 and 5!"
70+ %print_error% " '/max_depth' requires a number between 1 and 5!"
7171 exit /b
7272 )
7373 ) else if /i " %1 " == " /c" (
@@ -88,7 +88,7 @@ call "%cmder_root%\vendor\lib\lib_profile"
8888 set " GIT_INSTALL_ROOT = %~2 "
8989 shift
9090 ) else (
91- %lib_console% show_error " The Git install root folder " %~2 " , you specified does not exist!"
91+ %print_error% " The Git install root folder " %~2 " , you specified does not exist!"
9292 exit /b
9393 )
9494 ) else if /i " %1 " == " /nix_tools" (
@@ -110,7 +110,7 @@ call "%cmder_root%\vendor\lib\lib_profile"
110110 set " HOME = %~2 "
111111 shift
112112 ) else (
113- %lib_console% show_error The home folder " %2 " , you specified does not exist!
113+ %print_error% The home folder " %2 " , you specified does not exist!
114114 exit /b
115115 )
116116 ) else if /i " %1 " == " /svn_ssh" (
@@ -125,11 +125,11 @@ goto var_loop
125125:start
126126:: Sets CMDER_SHELL, CMDER_CLINK, CMDER_ALIASES
127127%lib_base% cmder_shell
128- %lib_console% debug_output init.bat " Env Var - CMDER_ROOT=%CMDER_ROOT% "
129- %lib_console% debug_output init.bat " Env Var - debug_output=%debug_output% "
128+ %print_debug% init.bat " Env Var - CMDER_ROOT=%CMDER_ROOT% "
129+ %print_debug% init.bat " Env Var - debug_output=%debug_output% "
130130
131131if defined CMDER_USER_CONFIG (
132- %lib_console% debug_output init.bat " CMDER IS ALSO USING INDIVIDUAL USER CONFIG FROM '%CMDER_USER_CONFIG% '!"
132+ %print_debug% init.bat " CMDER IS ALSO USING INDIVIDUAL USER CONFIG FROM '%CMDER_USER_CONFIG% '!"
133133
134134 if not exist " %CMDER_USER_CONFIG% \opt" md " %CMDER_USER_CONFIG% \opt"
135135)
@@ -144,7 +144,7 @@ if "%PROCESSOR_ARCHITECTURE%"=="x86" (
144144)
145145
146146if " %CMDER_CLINK% " == " 1" (
147- %lib_console% verbose_output " Injecting Clink!"
147+ %print_verbose% " Injecting Clink!"
148148
149149 :: Run clink
150150 if defined CMDER_USER_CONFIG (
@@ -163,15 +163,15 @@ if "%CMDER_CLINK%" == "1" (
163163 " %CMDER_ROOT% \vendor\clink\clink_%clink_architecture% .exe" inject --quiet --profile " %CMDER_ROOT% \config" --scripts " %CMDER_ROOT% \vendor"
164164 )
165165) else (
166- %lib_console% verbose_output " WARNING: Incompatible 'ComSpec/Shell' Detetected Skipping Clink Injection!"
166+ %print_verbose% " WARNING: Incompatible 'ComSpec/Shell' Detetected Skipping Clink Injection!"
167167)
168168
169169if " %CMDER_CONFIGURED% " GTR " 1" (
170- %lib_console% verbose_output " Cmder is already configured, skipping Cmder Init!"
170+ %print_verbose% " Cmder is already configured, skipping Cmder Init!"
171171
172172 goto USER_ALIASES
173173) else if " %CMDER_CONFIGURED% " == " 1" (
174- %lib_console% verbose_output " Cmder is already configured, skipping to Cmder User Init!"
174+ %print_verbose% " Cmder is already configured, skipping to Cmder User Init!"
175175
176176 goto USER_CONFIG_START
177177)
@@ -191,12 +191,12 @@ if defined GIT_INSTALL_ROOT (
191191 if exist " %GIT_INSTALL_ROOT% \cmd\git.exe" goto :SPECIFIED_GIT
192192) else if " %fast_init% " == " 1" (
193193 if exist " %CMDER_ROOT% \vendor\git-for-windows\cmd\git.exe" (
194- %lib_console% debug_output " Skipping Git Auto-Detect!"
194+ %print_debug% " Skipping Git Auto-Detect!"
195195 goto :VENDORED_GIT
196196 )
197197)
198198
199- %lib_console% debug_output init.bat " Looking for Git install root..."
199+ %print_debug% init.bat " Looking for Git install root..."
200200
201201:: get the version information for vendored git binary
202202%lib_git% read_version VENDORED " %CMDER_ROOT% \vendor\git-for-windows\cmd" 2 > nul
@@ -218,31 +218,31 @@ for /F "delims=" %%F in ('where git.exe 2^>nul') do (
218218:VENDORED_GIT
219219if exist " %CMDER_ROOT% \vendor\git-for-windows" (
220220 set " GIT_INSTALL_ROOT = %CMDER_ROOT% \vendor\git-for-windows"
221- %lib_console% debug_output " Using vendored Git '%GIT_VERSION_VENDORED% '..."
221+ %print_debug% " Using vendored Git '%GIT_VERSION_VENDORED% '..."
222222 goto :CONFIGURE_GIT
223223) else (
224224 goto :NO_GIT
225225)
226226
227227:SPECIFIED_GIT
228- %lib_console% debug_output " Using /GIT_INSTALL_ROOT..."
228+ %print_debug% " Using /GIT_INSTALL_ROOT..."
229229goto :CONFIGURE_GIT
230230
231231:FOUND_GIT
232- %lib_console% debug_output " Using found Git '%GIT_VERSION_USER% ' from '%GIT_INSTALL_ROOT% ..."
232+ %print_debug% " Using found Git '%GIT_VERSION_USER% ' from '%GIT_INSTALL_ROOT% ..."
233233goto :CONFIGURE_GIT
234234
235235:CONFIGURE_GIT
236- %lib_console% debug_output " Using Git from '%GIT_INSTALL_ROOT% ..."
236+ %print_debug% " Using Git from '%GIT_INSTALL_ROOT% ..."
237237:: Add git to the path
238238if exist " %GIT_INSTALL_ROOT% \cmd\git.exe" %lib_path% enhance_path " %GIT_INSTALL_ROOT% \cmd" " "
239239
240240:: Add the unix commands at the end to not shadow windows commands like more
241241if %nix_tools% equ 1 (
242- %lib_console% verbose_output " Preferring Windows commands"
242+ %print_verbose% " Preferring Windows commands"
243243 set " path_position = append"
244244) else (
245- %lib_console% verbose_output " Preferring *nix commands"
245+ %print_verbose% " Preferring *nix commands"
246246 set " path_position = "
247247)
248248
@@ -268,7 +268,7 @@ if not defined git_locale for /F "tokens=* delims=" %%F in ('where env.exe 2^>nu
268268setlocal enabledelayedexpansion
269269if defined git_locale (
270270
271- REM !lib_console! debug_output init.bat "Env Var - git_locale=!git_locale!"
271+ REM %print_debug% init.bat "Env Var - git_locale=!git_locale!"
272272 if not defined LANG (
273273 for /F " delims=" %%F in ('!git_locale! -uU 2') do (
274274 set " LANG = %%F "
@@ -277,8 +277,8 @@ if defined git_locale (
277277)
278278endlocal && set LANG = %LANG%
279279
280- %lib_console% debug_output init.bat " Env Var - GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT% "
281- %lib_console% debug_output init.bat " Found Git in: '%GIT_INSTALL_ROOT% '"
280+ %print_debug% init.bat " Env Var - GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT% "
281+ %print_debug% init.bat " Found Git in: '%GIT_INSTALL_ROOT% '"
282282goto :PATH_ENHANCE
283283
284284:NO_GIT
@@ -361,20 +361,20 @@ if exist "%GIT_INSTALL_ROOT%\post-install.bat" (
361361
362362:: Set home path
363363if not defined HOME set " HOME = %USERPROFILE% "
364- %lib_console% debug_output init.bat " Env Var - HOME=%HOME% "
364+ %print_debug% init.bat " Env Var - HOME=%HOME% "
365365
366366set " initialConfig = %CMDER_ROOT% \config\user_profile.cmd"
367367if exist " %CMDER_ROOT% \config\user_profile.cmd" (
368368 REM Create this file and place your own command in there
369- %lib_console% debug_output init.bat " Calling - %CMDER_ROOT% \config\user_profile.cmd"
369+ %print_debug% init.bat " Calling - %CMDER_ROOT% \config\user_profile.cmd"
370370 call " %CMDER_ROOT% \config\user_profile.cmd"
371371)
372372
373373if defined CMDER_USER_CONFIG (
374374 set " initialConfig = %CMDER_USER_CONFIG% \user_profile.cmd"
375375 if exist " %CMDER_USER_CONFIG% \user_profile.cmd" (
376376 REM Create this file and place your own command in there
377- %lib_console% debug_output init.bat " Calling - %CMDER_USER_CONFIG% \user_profile.cmd"
377+ %print_debug% init.bat " Calling - %CMDER_USER_CONFIG% \user_profile.cmd"
378378 call " %CMDER_USER_CONFIG% \user_profile.cmd"
379379 )
380380)
0 commit comments