Skip to content

Improve first-run setup in Command Prompt and PowerShell - #3146

Open
DRSDavidSoft wants to merge 3 commits into
mainfrom
improve/first-launch
Open

DRSDavidSoft wants to merge 3 commits into
mainfrom
improve/first-launch

Conversation

@DRSDavidSoft

@DRSDavidSoft DRSDavidSoft commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Give Command Prompt and PowerShell the same green section headers, lambda mark, and file-creation diagnostics. Redirected output uses plain text.
  • Apply a unified diff to the extracted Portable Git post-install.bat with git apply. Cmder's caller removes the script after a successful return. Git's output remains visible, and a failed setup leaves the script available for retry.

Fixes #2980. Builds on the first-launch work in #2788 and revisits the workaround discussed in #2995.

Validation

  • Local Windows PowerShell 5.1 regression checks passed for setup failures, retries, repeat launches, preservation of user profiles, and Portable Git cleanup.
  • Vendor update, build helper, Git layout, and TCC shell-detection tests passed.
  • Applied the patch to the real Portable Git 2.52.0 archive. Verified first and repeat startup from Full and No-Git archives in CMD and Windows PowerShell 5.1, plus one-time setup through the packaged Bash launcher. Verified that a changed upstream script fails the build patch step and is left intact.
  • Local launcher and vendor build and packaging passed. Verified runtime helper and Portable Git entries across all six package variants.

Base is main for 2.x. A backport can target legacy/1.x separately.

Before and after

First launch in ConEmu on Windows 11, using a fresh Cmder configuration for each capture.

Shell Before After
Command Prompt Command Prompt before Command Prompt after
Windows PowerShell 5.1 PowerShell before PowerShell after

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.

1 participant