Repository navigation
Conversation
Trust MINGW_PREFIX/MSYSTEM from Git's own startup instead of always preferring an external Program Files Git, then prepend Cmder's bin directories. Run once via a CMDER_EXINIT guard with CMDER_ROOT set by the caller, support ucrt64/clangarm64 and Zsh, fix the "Program Files (x86)" path, stop sourcing ~/.bashrc (login files run after profile.d), restore the native bin after user profiles reset PATH, and route debug messages through vendor/lib/lib_console.sh gated by debug_output.
…files Build the bundled Git Bash hook from the cmder_exinit shim and install it as zz-cmder.sh so Cmder runs after Git's standard PATH hooks, including env.sh. Because this hook only ships inside the bundled Git, it can safely fall back to deriving CMDER_ROOT from the mount root when bundled Git Bash is launched directly outside Cmder. Replace the old cmder.sh hook with a placeholder on in-place upgrades so Cmder does not initialize twice. Fail packaging early when any required Bash startup file (cmder.sh, cmder_exinit, lib_console.sh, setup_external_git_bash.ps1) is missing.
Use the common Git shell initializer for discovery, PATH setup, and external Git hook guidance. Keep each launcher focused on starting its shell and logging the launch.
Cover shared launcher setup, Bash startup behavior, and external hook installation. Verify package variants include required startup files and exclude user-owned state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bash - Fix
When Cmder starts. Bundled Git Bash now runs Cmder through
/etc/profile.d/zz-cmder.shor optionaly/etc/profile.d/zz-cmder_exinit.shon external git installations after Git Bash’s standard PATH setup. Cmder adds its own folders to PATH while respecting Git Bash’s normal environment, including its native Git bin directory.vendor/cmder.shnow supplies the shared startup logic. for/etc/profile.d/zz-cmder.shor optionaly/etc/profile.d/zz-cmder_exinit.sh.CMD and PowerShell sessions still load their familiar Cmder profile files. Bash’s startup timing and
.bashrchandling change more noticeably so Cmder fits into Git Bash’s regular startup flow.Additional changes
vendor/lib/lib_git_shell.cmd).Nto skip this launch orneverto save an opt-out for that computer and Git path (vendor/setup_external_git_bash.ps1).debug_output, using a shared console helper.scripts/test-build-helpers.ps1,scripts/test-git-layout.ps1).The PR is focused on Bash and Mintty integration; unrelated Windows Terminal, launcher, and 2.0 packaging changes are already in the base branch.