Repository navigation
Feature/winux shell integration - #36
Merged
caomengxuan666 merged 4 commits intoMar 24, 2026
Merged
Conversation
- detect parent shell and choose REPL fallback shell (PowerShell or cmd) - replace PowerShell fallback `-Command` path with `-EncodedCommand` (UTF-16LE + Base64) - prevent fallback from echoing raw text instead of executing commands - keep cmd fallback unchanged for cmd-origin sessions
- detect parent shell in REPL startup (cmd vs powershell/pwsh) - route native fallback by environment: - cmd parent -> cmd.exe /d /c - powershell parent -> powershell/pwsh -EncodedCommand - use EncodedCommand for PowerShell fallback to avoid quoting/pipeline breakage - keep sudo/pipe builtin rewrite compatible with native Windows sudo and mixed pipelines - add built-in PowerShell command/option completion set - expose shell-aware completion query APIs and wire them into main REPL completer - update README / README-zh / DOCS to document: - shell-aware fallback behavior - PowerShell profile bootstrap snippet - completion env var (WINUXCMD_COMPLETION_FILE) - project status (many users, limited contributors)
Change WinuxCmd PowerShell fallback startup args from: -ExecutionPolicy Bypass to: -ExecutionPolicy RemoteSigned This avoids overriding user/system execution policy behavior and fixes profile/script loading issues caused by forced Bypass in child sessions.
Member
Author
|
fix: replace PowerShell fallback ExecutionPolicy Bypass with RemoteSigned SummaryThis PR fixes a PowerShell execution policy issue in WinuxCmd fallback mode. When WinuxCmd falls back to PowerShell for unknown commands, it previously launched with:
That forced process-level policy and could conflict with user expectations around profile/script loading and policy management. Now it uses:
Changes
Why
Risk
Testing
|
caomengxuan666
added a commit
that referenced
this pull request
Mar 24, 2026
…l-integration Feature/winux shell integration
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.
Summary
This PR improves WinuxCmd REPL shell compatibility by making fallback execution shell-aware and adding PowerShell-native completion support.
What changed
cmdvspowershell/pwsh)cmd.exe /d /cpowershell/pwsh -EncodedCommand-Commandstring to-EncodedCommand(UTF-16LE Base64)Get-Process,Where-Object, etc.)README.md,README-zh.mdDOCS/en/overview.md,DOCS/zh/overview_zh.md,DOCS/zh/winux_shell_integration_zh.mdDOCS/en/winux_shell_integration_en.mdWhy
Notes
cmake/ninjawere unavailable in PATH; code and docs are ready for normal CI/local build verification.