Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /f for fast init. #1942

Merged
merged 9 commits into from
Nov 4, 2018
Merged

Add /f for fast init. #1942

merged 9 commits into from
Nov 4, 2018

Conversation

daxgames
Copy link
Member

@daxgames daxgames commented Nov 3, 2018

The below enables Cmder Fast Init mode for cmd.exe sessions. This is more like the Cmder 1.3.5 init process. See issue #1821

Cmder Fast Init mode bypasses or disables the following Cmder 1.3.6+ features:

  • Git root and version detection. Defaults to %cmder_root%\vendor\git-for-windows if it exists.
  • Path enhance validation before path modify so %Path% enhancements are forced.
  • Recursive path add for "%CMDER_ROOT%\bin"
  • Recursive path add for "%CMDER_USER_BIN%\bin" if /c [user_config_folder is specified.
  • /d switch to enable debug output.
  • /v switch to enable debug output.

Add /f to Cmder task as shown below t enable fast init:

Note 1: This setting is invalid in Cmder Powershell and Bash sessions~

Note 2: Add /t also to see init timer output

image

Cuts ~2.4 seconds off of init time.

image

@daxgames daxgames changed the title Add /f for fast init. Bypasses Git detection, disables debug and verbose output Add /f for fast init. Nov 3, 2018
@daxgames daxgames added the Work In Progress Work in Progress DO NOT MERGE! label Nov 3, 2018
@daxgames daxgames removed the Work In Progress Work in Progress DO NOT MERGE! label Nov 3, 2018
@daxgames
Copy link
Member Author

daxgames commented Nov 3, 2018

Ready to go!

@Stanzilla
Copy link
Member

Oh that's nice, can you add documentation for it as well?

@daxgames
Copy link
Member Author

daxgames commented Nov 3, 2018

Done added to README.md and referenced this PR# with a link.

@Stanzilla Stanzilla merged commit a5bdecc into cmderdev:master Nov 4, 2018
@Stanzilla
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants