Skip to content

Add Windows PowerShell port of statusline script#37

Open
aconite33 wants to merge 1 commit intotrailofbits:mainfrom
blacklanternsecurity:add-windows-statusline
Open

Add Windows PowerShell port of statusline script#37
aconite33 wants to merge 1 commit intotrailofbits:mainfrom
blacklanternsecurity:add-windows-statusline

Conversation

@aconite33
Copy link

Adds a PowerShell port of statusline.sh for Windows users, along with updated README documentation covering installation on both
platforms.

  • scripts/statusline.ps1 - full port of the bash statusline, compatible with PowerShell 5.1+
  • README.md - statusline section updated with Windows install steps and platform-specific settings.json examples

Changes

scripts/statusline.ps1

  • Functionally equivalent to statusline.sh - same two-line layout, same data, same color coding
  • Uses ConvertFrom-Json for JSON parsing (no jq requirement)
  • Git is optional - gracefully skips branch/repo info if git is not installed
  • Uses ASCII-safe progress bar characters (# and -) for broad terminal compatibility
  • Forces UTF-8 output encoding for consistent rendering

README.md

  • Statusline section now shows install instructions for both macOS/Linux and Windows
  • Adds settings.json examples for both platforms

Port of statusline.sh to PowerShell 5.1+ for Windows users. Uses
ConvertFrom-Json instead of jq (no external dependencies), handles
git being optional, and uses ASCII-safe progress bar characters for
broad terminal compatibility. README updated with Windows install
instructions.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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