Add Windows support for context-bar.sh (fixes #5)#11
Open
hx3333 wants to merge 2 commits intoykdojo:mainfrom
Open
Add Windows support for context-bar.sh (fixes #5)#11hx3333 wants to merge 2 commits intoykdojo:mainfrom
hx3333 wants to merge 2 commits intoykdojo:mainfrom
Conversation
- Use jq.exe from the same directory as the script - Fixes issue where jq is not in PATH on Windows
Changes: - Detect Windows (Git Bash/MSYS2) via OSTYPE and MSYSTEM env vars - Use jq.exe from script directory on Windows - Use system jq on Linux/Mac (backward compatible) - Add Windows setup instructions to README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
Thank you. I don't have an easy way to test this on Windows, so I'll wait for someone else to test it. |
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 adds Windows support for the
context-bar.shstatus line script, fixing #5.Changes
OSTYPEandMSYSTEMenvironment variablesjq.exefrom the script directoryjq(backward compatible)Usage on Windows
jq.exefrom jqlang.github.io/jqjq.exein~/.claude/scripts/alongsidecontext-bar.shsettings.json:{ "statusLine": { "type": "command", "command": "/c/Users/USERNAME/.claude/scripts/context-bar.sh" } }Testing
Fixes #5