mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 22:57:49 +08:00
add diag helper scripts and adds to the path (#1918)
These scripts are to help us help our users by getting a relative picture of their environment that they can submit with an incident.
This commit is contained in:
committed by
Benjamin Staneck
parent
c5a6afbf5b
commit
3a11d45552
9
vendor/init.bat
vendored
9
vendor/init.bat
vendored
@ -1,5 +1,7 @@
|
||||
@echo off
|
||||
|
||||
set cmder_init_start=%time%
|
||||
|
||||
:: Init Script for cmd.exe
|
||||
:: Created as part of cmder project
|
||||
|
||||
@ -38,6 +40,8 @@ call "%cmder_root%\vendor\lib\lib_profile"
|
||||
:var_loop
|
||||
if "%~1" == "" (
|
||||
goto :start
|
||||
) else if /i "%1"=="/t" (
|
||||
set time_init=1
|
||||
) else if /i "%1"=="/v" (
|
||||
set verbose_output=1
|
||||
) else if /i "%1"=="/d" (
|
||||
@ -386,4 +390,9 @@ if "%CMDER_ALIASES%" == "1" if exist "%CMDER_ROOT%\bin\alias.bat" if exist "%CMD
|
||||
set initialConfig=
|
||||
set CMDER_CONFIGURED=1
|
||||
|
||||
set cmder_init_end=%time%
|
||||
|
||||
if %time_init% gtr 0 (
|
||||
%cmder_root%\vendor\bin\timer.cmd %cmder_init_start% %cmder_init_end%
|
||||
)
|
||||
exit /b
|
||||
|
Reference in New Issue
Block a user