Fix .NET version script and enhance Oh My Posh integration #7
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 addresses the Oh My Posh integration feature requests and fixes a critical bug in the .NET version script that was causing Docker builds to fail.
Fixes #3 - Feature Request: Enhanced PowerShell Prompt with Oh My Posh Integration
Fixes #4 - Feature Request: Enhanced PowerShell Prompt with Oh My Posh Integration
🐛 Bug Fix: .NET Version Script
Root Cause
The
scripts/get-net-pwsh-versions.shscript was failing because Microsoft now has TWO active LTS .NET releases:The script's jq query returned both results as a multi-line string, causing:
latest_runtime=10.0.1\n8.0.23(multi-line)releases_json=URL1\nURL2(multi-line)curl "$releases_json"fails with invalid URLNET_RUNTIME_URL_*variables remain emptyFix
Added
first()to jq queries to select only the newest LTS release:✨ Oh My Posh Enhancements
1. Embedded Blue PSL 10K Theme
config/ohmyposh-container.jsonpath_blue(#3465a4) color scheme2. Runtime Environment Variables
true) - Disable Oh My Posh at runtime3. Three-Tier Fallback Hierarchy
4. Container Optimization
/bin/zshto/bin/bash5. Documentation Updates
📋 Files Changed
scripts/get-net-pwsh-versions.shfirst()config/ohmyposh-container.jsonconfig/Microsoft.PowerShell_profile.ps1DockerfileREADME.mdscripts/test-ohmyposh-build.sh✅ Testing Results
Version Script
Docker Build
✅ Build completes successfully for linux/arm64
Container Tests
📝 Checklist
Pull Request opened by Augment Code with guidance from the PR author