Startup is very slow, taking more than 30+ seconds
Translated from Google: Hello, thank you for providing such a useful tool, but in the process of using it, I encountered a problem.
The startup is very slow. Clicking "Cmder Here" in the right-click menu takes 36 seconds to start (00:01-00:37). Add the "/f" parameter according to this issue, and it takes 23 seconds to start (00:47-01: 10). Press Enter directly without executing any command after startup, and it will be stuck for 1 second each time you enter (the last demonstration of the video)
video:
https://user-images.githubusercontent.com/109657322/182510729-140a24a4-5d52-4ce1-927a-905e09a31c6c.mp4

env: i7-1165G7 16G Windows10 21H2 Version 1.3.19.1181
Same here. Since the latest version it takes up to 6 minutes to start up on my laptop (i7-10510U/64Gb/Win10 21H2/ver 1.3.19.1181)
Even with /f added for faster starting, it still takes the same time.

Same here. Since the latest version it takes up to 6 minutes to start up on my laptop (i7-10510U/64Gb/Win10 21H2/ver 1.3.19.1181)
Even with /f added for faster starting, it still takes the same time.
By editing the init.bat, vender/lib/lib_base.cmd, and vender/clink.lua files, I removed many extended functions, such as git, svn environment detection, etc., and only retained the clink injection, history, and tab key command prompt functions. Startup now takes less than 7 seconds.
What is the %PATH% environment variable set to?
Are there any network paths in the %PATH% environment variable?
The only time I have ever seen this kind of slowness is:
- Corporate managed system with some software that inspects everything for data loss prevention. Most likeley cause in my experience.
- Network paths as @chrisant996 mentioned.
What is the
%PATH%environment variable set to?Are there any network paths in the
%PATH%environment variable?
Unfortunately no network paths in the environment variable (both user and system variables)...
Somehow I had a good day yesterday (only 6 seconds), but today I had a long one (5 minutes +), a less long one (about 1.5 minute) and again some fast ones (only 6 seconds again and even 4 seconds)...
What is the
%PATH%environment variable set to?Are there any network paths in the
%PATH%environment variable?
There is no network path in %PATH%, and every boot time is stable for about 30 seconds.
@MM-UU If you go back to an older version does speed improve?
I still believe there is something on your systems causing this extreme(more than 5 seconds) . I get the below times running on a circa 2016 intel Core i5 Ubuntu 22.04 Linux laptop that has no SSD disk and 8GB RAM running an under powered Windows 10 Enterprise Virtualbox VM.

On the left is normal Cmder launch with /t on the right is cmder with /f /t arguments added. FYI /t is what shows the time to launch.
Just downloaded 1.3.17.1802, but it is still the same. Really weird because it started to get slow when I was using 1.3.18 (at first it was quick).
@MM-UU is this on a personal system or a company managed system? I have seen first hand the problem you describe and it is ALWAYS something on that system.
Have you tried another computer?
I edited the init.bat file and output the time-consuming of each line of script. The results are as follows:
Scripts that take a lot of time:
UseTime:
2.04s: call "%cmder_root%\vendor\bin\cexec.cmd" /setpath
1.07s: "%CMDER_ROOT%\vendor\clink\clink_%clink_architecture%.exe" inject --quiet --profile "%CMDER_ROOT%\config" --scripts "%CMDER_ROOT%\vendor"
2.12s: for /F "delims=" %%F in ('where git.exe 2^>nul') do (
1.09s: %lib_git% get_user_git_version
2.12s: if not defined git_locale for /F "tokens=* delims=" %%F in ('where locale.exe 2^>nul') do ( if not defined git_locale set git_locale="%%F" )
2.08s: for /F "delims=" %%F in ('"D:\Pro\Cmder\shell\vendor\git-for-windows\usr\bin\locale.exe" -uU 2') do (
2.16s: setlocal enabledelayedexpansion
6.15s: %lib_path% enhance_path "%CMDER_ROOT%\vendor\bin"
2.06s: %lib_path% enhance_path_recursive "%CMDER_ROOT%\bin" 0 %max_depth%
4.10s: %lib_path% enhance_path "%CMDER_ROOT%" append
1.06s: %lib_profile% run_profile_d "%CMDER_ROOT%\config\profile.d"
2.07s: %lib_base% update_legacy_aliases
2.05s: type "%user_aliases%" | findstr /b /l /i "history=cat " >nul
1.04s: call "%user_aliases%"
Click to expand all
Elapsed Time: 0:0:0.00 (0.00s total)
end
start ":: Init Script for cmd.exe"
Elapsed Time: 0:0:0.02 (0.02s total)
end ":: Init Script for cmd.exe"
start ":: Created as part of cmder project"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Created as part of cmder project"
start ":: !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED"
start ":: !!! Use "@CMDER_ROOT@\config\user_profile.cmd" to add your own startup commands"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: !!! Use "@CMDER_ROOT@\config\user_profile.cmd" to add your own startup commands"
start ":: Use /v command line arg or set to > 0 for verbose output to aid in debugging."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Use /v command line arg or set to > 0 for verbose output to aid in debugging."
start "if not defined verbose_output set verbose_output=0"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined verbose_output set verbose_output=0"
start ":: Use /d command line arg or set to 1 for debug output to aid in debugging."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Use /d command line arg or set to 1 for debug output to aid in debugging."
start "if not defined debug_output set debug_output=0"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined debug_output set debug_output=0"
start ":: Use /t command line arg or set to 1 to display init time."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Use /t command line arg or set to 1 to display init time."
start "if not defined time_init set time_init=1"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined time_init set time_init=1"
start ":: Use /f command line arg to speed up init at the expense of some functionality."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Use /f command line arg to speed up init at the expense of some functionality."
start "if not defined fast_init set fast_init=0"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined fast_init set fast_init=0"
start ":: Use /max_depth 1-5 to set max recurse depth for calls to `enhance_path_recursive`"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Use /max_depth 1-5 to set max recurse depth for calls to `enhance_path_recursive`"
start "if not defined max_depth set max_depth=1"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined max_depth set max_depth=1"
start ":: Add *nix tools to end of path. 0 turns off *nix tools, 2 adds *nix tools to the front of thr path."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Add *nix tools to end of path. 0 turns off *nix tools, 2 adds *nix tools to the front of thr path."
start "if not defined nix_tools set nix_tools=1"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined nix_tools set nix_tools=1"
start "set "CMDER_USER_FLAGS= ""
Elapsed Time: 0:0:0.01 (0.01s total)
end "set "CMDER_USER_FLAGS= ""
start ":: Find root dir"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Find root dir"
start "if not defined CMDER_ROOT ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined CMDER_ROOT ("
start ":: Remove trailing '\' from @CMDER_ROOT@"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Remove trailing '\' from @CMDER_ROOT@"
start "if "@CMDER_ROOT:~-1@" == "\" SET "CMDER_ROOT=@CMDER_ROOT:~0,-1@""
Elapsed Time: 0:0:0.00 (0.00s total)
end "if "@CMDER_ROOT:~-1@" == "\" SET "CMDER_ROOT=@CMDER_ROOT:~0,-1@""
start "call "@cmder_root@\vendor\bin\cexec.cmd" /setpath"
Elapsed Time: 0:0:2.04 (2.04s total)
end "call "@cmder_root@\vendor\bin\cexec.cmd" /setpath"
start "call "@cmder_root@\vendor\lib\lib_base""
Elapsed Time: 0:0:0.02 (0.02s total)
end "call "@cmder_root@\vendor\lib\lib_base""
start "call "@cmder_root@\vendor\lib\lib_path""
Elapsed Time: 0:0:0.02 (0.02s total)
end "call "@cmder_root@\vendor\lib\lib_path""
start "call "@cmder_root@\vendor\lib\lib_console""
Elapsed Time: 0:0:0.02 (0.02s total)
end "call "@cmder_root@\vendor\lib\lib_console""
start "call "@cmder_root@\vendor\lib\lib_git""
Elapsed Time: 0:0:0.02 (0.02s total)
end "call "@cmder_root@\vendor\lib\lib_git""
start "call "@cmder_root@\vendor\lib\lib_profile""
Elapsed Time: 0:0:0.03 (0.03s total)
end "call "@cmder_root@\vendor\lib\lib_profile""
start ":var_loop"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":var_loop"
start " if "@~1" == "" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if "@~1" == "" ("
start " goto :start"
Elapsed Time: 0:0:0.01 (0.01s total)
end " goto :start"
start ":: Sets CMDER_SHELL, CMDER_CLINK, CMDER_ALIASES"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Sets CMDER_SHELL, CMDER_CLINK, CMDER_ALIASES"
start "@lib_base@ cmder_shell"
Elapsed Time: 0:0:0.01 (0.01s total)
end "@lib_base@ cmder_shell"
start "@print_debug@ init.bat "Env Var - CMDER_ROOT=@CMDER_ROOT@""
Elapsed Time: 0:0:0.00 (0.00s total)
end "@print_debug@ init.bat "Env Var - CMDER_ROOT=@CMDER_ROOT@""
start "@print_debug@ init.bat "Env Var - debug_output=@debug_output@""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ init.bat "Env Var - debug_output=@debug_output@""
start "if defined CMDER_USER_CONFIG ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined CMDER_USER_CONFIG ("
start ":: Pick right version of clink"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Pick right version of clink"
start "if "@PROCESSOR_ARCHITECTURE@"=="x86" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if "@PROCESSOR_ARCHITECTURE@"=="x86" ("
start " set clink_architecture=x64"
Elapsed Time: 0:0:0.01 (0.01s total)
end " set clink_architecture=x64"
start " set architecture_bits=64"
Elapsed Time: 0:0:0.01 (0.01s total)
end " set architecture_bits=64"
start ")"
Elapsed Time: 0:0:0.01 (0.01s total)
end ")"
start "if "@CMDER_CLINK@" == "1" ("
Elapsed Time: 0:0:0.02 (0.02s total)
end "if "@CMDER_CLINK@" == "1" ("
start " @print_verbose@ "Injecting Clink!""
Elapsed Time: 0:0:0.01 (0.01s total)
end " @print_verbose@ "Injecting Clink!""
start " :: Run clink"
Elapsed Time: 0:0:0.01 (0.01s total)
end " :: Run clink"
start " if defined CMDER_USER_CONFIG ("
Elapsed Time: 0:0:0.00 (0.00s total)
end " if defined CMDER_USER_CONFIG ("
start " if not exist "@CMDER_ROOT@\config\settings" if not exist "@CMDER_ROOT@\config\clink_settings" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if not exist "@CMDER_ROOT@\config\settings" if not exist "@CMDER_ROOT@\config\clink_settings" ("
start " "
Elapsed Time: 0:0:0.01 (0.01s total)
end " "
start " if not exist "@CMDER_ROOT@\config\cmder_prompt_config.lua" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if not exist "@CMDER_ROOT@\config\cmder_prompt_config.lua" ("
start " REM Cleanup lagacy Clink Settings file"
Elapsed Time: 0:0:0.01 (0.01s total)
end " REM Cleanup lagacy Clink Settings file"
start " if exist "@CMDER_ROOT@\config\settings" if exist "@CMDER_ROOT@\config\clink_settings" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if exist "@CMDER_ROOT@\config\settings" if exist "@CMDER_ROOT@\config\clink_settings" ("
start " REM Cleanup legacy Clink history file"
Elapsed Time: 0:0:0.01 (0.01s total)
end " REM Cleanup legacy Clink history file"
start " if exist "@CMDER_ROOT@\config\.history" if exist "@CMDER_ROOT@\config\clink_history" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if exist "@CMDER_ROOT@\config\.history" if exist "@CMDER_ROOT@\config\clink_history" ("
start " "@CMDER_ROOT@\vendor\clink\clink_@[email protected]" inject --quiet --profile "@CMDER_ROOT@\config" --scripts "@CMDER_ROOT@\vendor""
Elapsed Time: 0:0:1.07 (1.07s total)
end " "@CMDER_ROOT@\vendor\clink\clink_@[email protected]" inject --quiet --profile "@CMDER_ROOT@\config" --scripts "@CMDER_ROOT@\vendor""
start " )"
Elapsed Time: 0:0:0.01 (0.01s total)
end " )"
start ") else ("
Elapsed Time: 0:0:0.01 (0.01s total)
end ") else ("
start "if "@CMDER_CONFIGURED@" GTR "1" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if "@CMDER_CONFIGURED@" GTR "1" ("
start ":: Prepare for git-for-windows"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Prepare for git-for-windows"
start ":: I do not even know, copypasted from their .bat"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: I do not even know, copypasted from their .bat"
start "set PLINK_PROTOCOL=ssh"
Elapsed Time: 0:0:0.00 (0.00s total)
end "set PLINK_PROTOCOL=ssh"
start "if not defined TERM set TERM=cygwin"
Elapsed Time: 0:0:0.02 (0.02s total)
end "if not defined TERM set TERM=cygwin"
start ":: The idea:"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: The idea:"
start ":: * if the users points as to a specific git, use that"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: * if the users points as to a specific git, use that"
start ":: * test if a git is in path and if yes, use that"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: * test if a git is in path and if yes, use that"
start ":: * last, use our vendored git"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: * last, use our vendored git"
start ":: also check that we have a recent enough version of git by examining the version string"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: also check that we have a recent enough version of git by examining the version string"
start "if defined GIT_INSTALL_ROOT ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined GIT_INSTALL_ROOT ("
start "@print_debug@ init.bat "Looking for Git install root...""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ init.bat "Looking for Git install root...""
start ":: get the version information for vendored git binary"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: get the version information for vendored git binary"
start "@lib_git@ read_version VENDORED "@CMDER_ROOT@\vendor\git-for-windows\cmd" 2>nul"
Elapsed Time: 0:0:0.02 (0.02s total)
end "@lib_git@ read_version VENDORED "@CMDER_ROOT@\vendor\git-for-windows\cmd" 2>nul"
start "@lib_git@ validate_version VENDORED @GIT_VERSION_VENDORED@"
Elapsed Time: 0:0:0.03 (0.03s total)
end "@lib_git@ validate_version VENDORED @GIT_VERSION_VENDORED@"
start ":: check if git is in path..."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: check if git is in path..."
start "for /F "delims=" @@F in ('where git.exe 2^>nul') do ("
Elapsed Time: 0:0:2.12 (2.12s total)
end "for /F "delims=" @@F in ('where git.exe 2^>nul') do ("
start " :: get the absolute path to the user provided git binary"
Elapsed Time: 0:0:0.01 (0.01s total)
end " :: get the absolute path to the user provided git binary"
start " @lib_git@ is_git_shim "@@~dpF""
Elapsed Time: 0:0:0.02 (0.02s total)
end " @lib_git@ is_git_shim "@@~dpF""
start " @lib_git@ get_user_git_version"
Elapsed Time: 0:0:1.09 (1.09s total)
end " @lib_git@ get_user_git_version"
start " @lib_git@ compare_git_versions"
Elapsed Time: 0:0:0.04 (0.04s total)
end " @lib_git@ compare_git_versions"
start " if defined GIT_INSTALL_ROOT ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if defined GIT_INSTALL_ROOT ("
start " goto :FOUND_GIT"
Elapsed Time: 0:0:0.01 (0.01s total)
end " goto :FOUND_GIT"
start "@print_debug@ "Using found Git '@GIT_VERSION_USER@' from '@GIT_INSTALL_ROOT@...""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ "Using found Git '@GIT_VERSION_USER@' from '@GIT_INSTALL_ROOT@...""
start "goto :CONFIGURE_GIT"
Elapsed Time: 0:0:0.01 (0.01s total)
end "goto :CONFIGURE_GIT"
start "@print_debug@ "Using Git from '@GIT_INSTALL_ROOT@...""
Elapsed Time: 0:0:0.00 (0.00s total)
end "@print_debug@ "Using Git from '@GIT_INSTALL_ROOT@...""
start ":: Add git to the path"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: Add git to the path"
start "if exist "@GIT_INSTALL_ROOT@\cmd\git.exe" @lib_path@ enhance_path "@GIT_INSTALL_ROOT@\cmd" """
Elapsed Time: 0:0:0.01 (0.01s total)
end "if exist "@GIT_INSTALL_ROOT@\cmd\git.exe" @lib_path@ enhance_path "@GIT_INSTALL_ROOT@\cmd" """
start ":: Add the unix commands at the end to not shadow windows commands like more"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Add the unix commands at the end to not shadow windows commands like more"
start "if @nix_tools@ equ 1 ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if @nix_tools@ equ 1 ("
start " @print_verbose@ "Preferring Windows commands""
Elapsed Time: 0:0:0.01 (0.01s total)
end " @print_verbose@ "Preferring Windows commands""
start " set "path_position=append""
Elapsed Time: 0:0:0.00 (0.00s total)
end " set "path_position=append""
start ") else ("
Elapsed Time: 0:0:0.02 (0.02s total)
end ") else ("
start "if @nix_tools@ geq 1 ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if @nix_tools@ geq 1 ("
start " if exist "@GIT_INSTALL_ROOT@\mingw32" ("
Elapsed Time: 0:0:0.00 (0.00s total)
end " if exist "@GIT_INSTALL_ROOT@\mingw32" ("
start " if exist "@GIT_INSTALL_ROOT@\usr\bin" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if exist "@GIT_INSTALL_ROOT@\usr\bin" ("
start ")"
Elapsed Time: 0:0:0.01 (0.01s total)
end ")"
start ":: define SVN_SSH so we can use git svn with ssh svn repositories"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: define SVN_SSH so we can use git svn with ssh svn repositories"
start "if not defined SVN_SSH set "SVN_SSH=@GIT_INSTALL_ROOT:\=\\@\\bin\\ssh.exe""
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined SVN_SSH set "SVN_SSH=@GIT_INSTALL_ROOT:\=\\@\\bin\\ssh.exe""
start ":: Find locale.exe: From the git install root, from the path, using the git installed env, or fallback using the env from the path."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Find locale.exe: From the git install root, from the path, using the git installed env, or fallback using the env from the path."
start "if not defined git_locale if exist "@GIT_INSTALL_ROOT@\usr\bin\locale.exe" set git_locale="@GIT_INSTALL_ROOT@\usr\bin\locale.exe""
Elapsed Time: 0:0:0.00 (0.00s total)
end "if not defined git_locale if exist "@GIT_INSTALL_ROOT@\usr\bin\locale.exe" set git_locale="@GIT_INSTALL_ROOT@\usr\bin\locale.exe""
start "if not defined git_locale for /F "tokens=* delims=" @@F in ('where locale.exe 2^>nul') do ( if not defined git_locale set git_locale="@@F" )"
Elapsed Time: 0:0:2.12 (2.12s total)
end "if not defined git_locale for /F "tokens=* delims=" @@F in ('where locale.exe 2^>nul') do ( if not defined git_locale set git_locale="@@F" )"
start "if not defined git_locale if exist "@GIT_INSTALL_ROOT@\usr\bin\env.exe" set git_locale="@GIT_INSTALL_ROOT@\usr\bin\env.exe" /usr/bin/locale"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined git_locale if exist "@GIT_INSTALL_ROOT@\usr\bin\env.exe" set git_locale="@GIT_INSTALL_ROOT@\usr\bin\env.exe" /usr/bin/locale"
start "if not defined git_locale for /F "tokens=* delims=" @@F in ('where env.exe 2^>nul') do ( if not defined git_locale set git_locale="@@F" /usr/bin/locale )"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined git_locale for /F "tokens=* delims=" @@F in ('where env.exe 2^>nul') do ( if not defined git_locale set git_locale="@@F" /usr/bin/locale )"
start "setlocal enabledelayedexpansion"
Elapsed Time: 0:0:0.01 (0.01s total)
end "setlocal enabledelayedexpansion"
start "if defined git_locale ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined git_locale ("
start " REM @print_debug@ init.bat "Env Var - git_locale="D:\Pro\Cmder\shell\vendor\git-for-windows\usr\bin\locale.exe" ""
Elapsed Time: 0:0:0.01 (0.01s total)
end " REM @print_debug@ init.bat "Env Var - git_locale="D:\Pro\Cmder\shell\vendor\git-for-windows\usr\bin\locale.exe" ""
start " if not defined LANG ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if not defined LANG ("
start " for /F "delims=" @@F in ('"D:\Pro\Cmder\shell\vendor\git-for-windows\usr\bin\locale.exe" -uU 2') do ("
Elapsed Time: 0:0:2.08 (2.08s total)
end " for /F "delims=" @@F in ('"D:\Pro\Cmder\shell\vendor\git-for-windows\usr\bin\locale.exe" -uU 2') do ("
start " set "LANG=@@F""
Elapsed Time: 0:0:0.01 (0.01s total)
end " set "LANG=@@F""
start " )"
Elapsed Time: 0:0:0.01 (0.01s total)
end " )"
start " )"
Elapsed Time: 0:0:0.00 (0.00s total)
end " )"
start ")"
Elapsed Time: 0:0:0.00 (0.00s total)
end ")"
start "endlocal && set LANG=@LANG@"
Elapsed Time: 0:0:2.16 (2.16s total)
end "setlocal enabledelayedexpansion"
start "@print_debug@ init.bat "Env Var - GIT_INSTALL_ROOT=@GIT_INSTALL_ROOT@""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ init.bat "Env Var - GIT_INSTALL_ROOT=@GIT_INSTALL_ROOT@""
start "@print_debug@ init.bat "Found Git in: '@GIT_INSTALL_ROOT@'""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ init.bat "Found Git in: '@GIT_INSTALL_ROOT@'""
start "goto :PATH_ENHANCE"
Elapsed Time: 0:0:0.01 (0.01s total)
end "goto :PATH_ENHANCE"
start "@lib_path@ enhance_path "@CMDER_ROOT@\vendor\bin""
Elapsed Time: 0:0:6.15 (6.15s total)
end "@lib_path@ enhance_path "@CMDER_ROOT@\vendor\bin""
start ":USER_CONFIG_START"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":USER_CONFIG_START"
start "@lib_path@ enhance_path_recursive "@CMDER_ROOT@\bin" 0 @max_depth@"
Elapsed Time: 0:0:2.06 (2.06s total)
end "@lib_path@ enhance_path_recursive "@CMDER_ROOT@\bin" 0 @max_depth@"
start "if defined CMDER_USER_BIN ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined CMDER_USER_BIN ("
start "@lib_path@ enhance_path "@CMDER_ROOT@" append"
Elapsed Time: 0:0:4.10 (4.10s total)
end "@lib_path@ enhance_path "@CMDER_ROOT@" append"
start ":: Drop *.bat and *.cmd files into "@CMDER_ROOT@\config\profile.d""
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Drop *.bat and *.cmd files into "@CMDER_ROOT@\config\profile.d""
start ":: to run them at startup."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: to run them at startup."
start "@lib_profile@ run_profile_d "@CMDER_ROOT@\config\profile.d""
Elapsed Time: 0:0:1.06 (1.06s total)
end "@lib_profile@ run_profile_d "@CMDER_ROOT@\config\profile.d""
start "if defined CMDER_USER_CONFIG ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined CMDER_USER_CONFIG ("
start ":USER_ALIASES"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":USER_ALIASES"
start ":: Allows user to override default aliases store using profile.d"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Allows user to override default aliases store using profile.d"
start ":: scripts run above by setting the 'aliases' env variable."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: scripts run above by setting the 'aliases' env variable."
start "::"
Elapsed Time: 0:0:0.01 (0.01s total)
end "::"
start ":: Note: If overriding default aliases store file the aliases"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Note: If overriding default aliases store file the aliases"
start ":: must also be self executing, see '.\user_aliases.cmd.default',"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: must also be self executing, see '.\user_aliases.cmd.default',"
start ":: and be in profile.d folder."
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: and be in profile.d folder."
start "if not defined user_aliases ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined user_aliases ("
start " if defined CMDER_USER_CONFIG ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if defined CMDER_USER_CONFIG ("
start " set "user_aliases=@CMDER_ROOT@\config\user_aliases.cmd""
Elapsed Time: 0:0:0.01 (0.01s total)
end " set "user_aliases=@CMDER_ROOT@\config\user_aliases.cmd""
start " )"
Elapsed Time: 0:0:0.00 (0.00s total)
end " )"
start ")"
Elapsed Time: 0:0:0.01 (0.01s total)
end ")"
start "if "@CMDER_ALIASES@" == "1" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if "@CMDER_ALIASES@" == "1" ("
start " REM The aliases environment variable is used by alias.bat to id"
Elapsed Time: 0:0:0.01 (0.01s total)
end " REM The aliases environment variable is used by alias.bat to id"
start " REM the default file to store new aliases in."
Elapsed Time: 0:0:0.01 (0.01s total)
end " REM the default file to store new aliases in."
start " if not defined aliases ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if not defined aliases ("
start " set "aliases=@user_aliases@""
Elapsed Time: 0:0:0.00 (0.00s total)
end " set "aliases=@user_aliases@""
start " )"
Elapsed Time: 0:0:0.01 (0.01s total)
end " )"
start " REM Make sure we have a self-extracting user_aliases.cmd file"
Elapsed Time: 0:0:0.00 (0.00s total)
end " REM Make sure we have a self-extracting user_aliases.cmd file"
start " if not exist "@user_aliases@" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end " if not exist "@user_aliases@" ("
start " @lib_base@ update_legacy_aliases"
Elapsed Time: 0:0:2.07 (2.07s total)
end " @lib_base@ update_legacy_aliases"
start " )"
Elapsed Time: 0:0:0.01 (0.01s total)
end " )"
start " :: Update old 'user_aliases' to new self executing 'user_aliases.cmd'"
Elapsed Time: 0:0:0.01 (0.01s total)
end " :: Update old 'user_aliases' to new self executing 'user_aliases.cmd'"
start " if exist "@CMDER_ROOT@\config\aliases" ("
Elapsed Time: 0:0:0.00 (0.00s total)
end " if exist "@CMDER_ROOT@\config\aliases" ("
start ")"
Elapsed Time: 0:0:0.01 (0.01s total)
end ")"
start ":: Add aliases to the environment"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Add aliases to the environment"
start "type "@user_aliases@" | findstr /b /l /i "history=cat " >nul"
Elapsed Time: 0:0:2.05 (2.05s total)
end "type "@user_aliases@" | findstr /b /l /i "history=cat " >nul"
start "if "@ERRORLEVEL@" == "0" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if "@ERRORLEVEL@" == "0" ("
start "call "@user_aliases@""
Elapsed Time: 0:0:1.04 (1.04s total)
end "call "@user_aliases@""
start "if "@CMDER_CONFIGURED@" gtr "1" goto CMDER_CONFIGURED"
Elapsed Time: 0:0:0.00 (0.00s total)
end "if "@CMDER_CONFIGURED@" gtr "1" goto CMDER_CONFIGURED"
start ":: See vendor\git-for-windows\README.portable for why we do this"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: See vendor\git-for-windows\README.portable for why we do this"
start ":: Basically we need to execute this post-install.bat because we are"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: Basically we need to execute this post-install.bat because we are"
start ":: manually extracting the archive rather than executing the 7z sfx"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":: manually extracting the archive rather than executing the 7z sfx"
start "if exist "@GIT_INSTALL_ROOT@\post-install.bat" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if exist "@GIT_INSTALL_ROOT@\post-install.bat" ("
start ":: Set home path"
Elapsed Time: 0:0:0.00 (0.00s total)
end ":: Set home path"
start "if not defined HOME set "HOME=@USERPROFILE@""
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined HOME set "HOME=@USERPROFILE@""
start "@print_debug@ init.bat "Env Var - HOME=@HOME@""
Elapsed Time: 0:0:0.01 (0.01s total)
end "@print_debug@ init.bat "Env Var - HOME=@HOME@""
start "set "initialConfig=@CMDER_ROOT@\config\user_profile.cmd""
Elapsed Time: 0:0:0.01 (0.01s total)
end "set "initialConfig=@CMDER_ROOT@\config\user_profile.cmd""
start "if exist "@CMDER_ROOT@\config\user_profile.cmd" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if exist "@CMDER_ROOT@\config\user_profile.cmd" ("
start " REM Create this file and place your own command in there"
Elapsed Time: 0:0:0.00 (0.00s total)
end " REM Create this file and place your own command in there"
start " @print_debug@ init.bat "Calling - @CMDER_ROOT@\config\user_profile.cmd""
Elapsed Time: 0:0:0.01 (0.01s total)
end " @print_debug@ init.bat "Calling - @CMDER_ROOT@\config\user_profile.cmd""
start " call "@CMDER_ROOT@\config\user_profile.cmd""
Elapsed Time: 0:0:0.01 (0.01s total)
end " call "@CMDER_ROOT@\config\user_profile.cmd""
start ")"
Elapsed Time: 0:0:0.01 (0.01s total)
end ")"
start "if defined CMDER_USER_CONFIG ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if defined CMDER_USER_CONFIG ("
start "if not exist "@initialConfig@" ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not exist "@initialConfig@" ("
start "if "@CMDER_ALIASES@" == "1" if exist "@CMDER_ROOT@\bin\alias.bat" if exist "@CMDER_ROOT@\vendor\bin\alias.cmd" ("
Elapsed Time: 0:0:0.00 (0.00s total)
end "if "@CMDER_ALIASES@" == "1" if exist "@CMDER_ROOT@\bin\alias.bat" if exist "@CMDER_ROOT@\vendor\bin\alias.cmd" ("
start "set initialConfig="
Elapsed Time: 0:0:0.01 (0.01s total)
end "set initialConfig="
start ":CMDER_CONFIGURED"
Elapsed Time: 0:0:0.01 (0.01s total)
end ":CMDER_CONFIGURED"
start "if not defined CMDER_CONFIGURED set CMDER_CONFIGURED=1"
Elapsed Time: 0:0:0.01 (0.01s total)
end "if not defined CMDER_CONFIGURED set CMDER_CONFIGURED=1"
start "set CMDER_INIT_END=@time@"
Elapsed Time: 0:0:0.01 (0.01s total)
end "set CMDER_INIT_END=@time@"
start "if @time_init@ gtr 0 ("
Elapsed Time: 0:0:0.01 (0.01s total)
end "if @time_init@ gtr 0 ("
start " "@cmder_root@\vendor\bin\timer.cmd" "@CMDER_INIT_START@" "@CMDER_INIT_END@""
Elapsed Time: 0:0:30.60 (30.60s total)
Elapsed Time: 0:0:0.01 (0.01s total)
end " "@cmder_root@\vendor\bin\timer.cmd" "@CMDER_INIT_START@" "@CMDER_INIT_END@""
start ")"

@r8t0 thanks for the effort but these line times make no sense whatsoever. Things that shold be very quick are not.
Same questions:
-
Is this on a personal system or a company managed system? I have seen first hand the problem you describe and it is ALWAYS something on that system.
-
Have you tried another computer?
THERE IS SOMETHING ON YOUR SYSTEM CAUSING THIS! :-)
I got it. It's a system problem. This problem appears in a company managed system.Thank you
@r8t0 check #2744 may help out your slowness.