zx icon indicating copy to clipboard operation
zx copied to clipboard

zx cannot be run on Windows.

Open nullCode666 opened this issue 8 months ago • 2 comments

Image Image Image

I don't know why. It seems to be related to WSL on Windows.

node version:20.19.0 zx version:8.8.1

nullCode666 avatar Aug 22 '25 16:08 nullCode666

rodolfomarquez762-afk avatar Oct 16 '25 21:10 rodolfomarquez762-afk

Hi @stefanhaller! 👋 Thanks for the issue. 🙏

The branch name lookup, also accepts <owner>:<branch> format. For example, if user octocat has forked a repo and made a branch foo on their fork, then the branch name argument should be octocat:foo. Note that it should be the fork owner and not the git remote name that points to the forked repo, though most of the time they're the same.

I'm not familiar with lazygit, but maybe this would help? Here, I'm assuming the git remote name is the same as the fork owner.

customCommands:
  - key: "G"
    command: "gh pr view -w"
    context: "commits"
    description: "Go to PR in github"
  - key: "G"
    command: "gh pr view -w $(git rev-parse --abbrev-ref --symbolic-full-name {{.SelectedLocalBranch.Name}}@{upstream} | tr / :)"
    context: "localBranches"
    description: "Go to PR in github"

Please let me know if this helps with your situation.

babakks avatar Oct 22 '25 10:10 babakks

Yes, the suggested workaround works, thanks for that.

However, I would still say it's a bug in gh; it is able to do this extra work for me when the branch is checked out, but not when I pass the branch name as an argument, and I can't see a reason why.

stefanhaller avatar Nov 01 '25 09:11 stefanhaller

This issue has been automatically marked as stale because it has not had any activity in the last 30 days, and it will be closed in 30 days if no further activity occurs.

If you think this is a mistake, please comment on this issue to keep it open.

github-actions[bot] avatar Dec 02 '25 03:12 github-actions[bot]