mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
prevent timer results every time.
This commit is contained in:
parent
615ba5f816
commit
f1e2fb5697
2
vendor/bin/create-cmdercfg.ps1
vendored
2
vendor/bin/create-cmdercfg.ps1
vendored
@ -11,7 +11,7 @@ $CmderFunctions = Join-Path $CmderModulePath "Cmder.ps1"
|
|||||||
|
|
||||||
if ($shell -match 'cmd') {
|
if ($shell -match 'cmd') {
|
||||||
write-host "Generating Cmder Config for '$shell' shell in '$outfile'..."
|
write-host "Generating Cmder Config for '$shell' shell in '$outfile'..."
|
||||||
templateExpand "$env:cmder_root\vendor\user_init.cmd.template" "$outfile"
|
templateExpand "$env:cmder_root\vendor\user_init.template.cmd" "$outfile"
|
||||||
} elseif ($shell -match 'powershell') {
|
} elseif ($shell -match 'powershell') {
|
||||||
write-host "'$shell' is not supported at this time!"
|
write-host "'$shell' is not supported at this time!"
|
||||||
} elseif ($shell -match 'bash') {
|
} elseif ($shell -match 'bash') {
|
||||||
|
2
vendor/init.bat
vendored
2
vendor/init.bat
vendored
@ -562,7 +562,7 @@ if defined CMDER_USER_CONFIG (
|
|||||||
if not defined CMDER_CONFIGURED set CMDER_CONFIGURED=1
|
if not defined CMDER_CONFIGURED set CMDER_CONFIGURED=1
|
||||||
set CMDER_INIT_END=%time%
|
set CMDER_INIT_END=%time%
|
||||||
|
|
||||||
if "%CMDER_INIT_END%" neq "" if "%CMDER_INIT_START%" neq "" (
|
if "%time_init%" == "1" if "%CMDER_INIT_END%" neq "" if "%CMDER_INIT_START%" neq "" (
|
||||||
call "%cmder_root%\vendor\bin\timer.cmd" "%CMDER_INIT_START%" "%CMDER_INIT_END%"
|
call "%cmder_root%\vendor\bin\timer.cmd" "%CMDER_INIT_START%" "%CMDER_INIT_END%"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ goto :SKIP_CLINK
|
|||||||
|
|
||||||
set CMDER_INIT_END=%time%
|
set CMDER_INIT_END=%time%
|
||||||
|
|
||||||
if "%CMDER_INIT_END%" neq "" if "%CMDER_INIT_START%" neq "" (
|
if "%time_init%" == "1" if "%CMDER_INIT_END%" neq "" if "%CMDER_INIT_START%" neq "" (
|
||||||
call "%cmder_root%\vendor\bin\timer.cmd" "%CMDER_INIT_START%" "%CMDER_INIT_END%"
|
call "%cmder_root%\vendor\bin\timer.cmd" "%CMDER_INIT_START%" "%CMDER_INIT_END%"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user