not that it's a better solution, but a different solution is that for github at least, the gh cli is fantastic and has commands for opening the repo both in the cli and the browser, and you can also open issues, prs, etc. I have gh prv aliased to open the current branch's PR in the browser.
❯ gh alias list
c: pr create -a @me -f
ca: pr create -a @me -r myteam -f
co: pr checkout
prurl: pr view --json url -q ".url"
prv: pr view -w
4 Comments
SpaceNoodle@lemmy.world · 7 pts · 2y
Ah, so it's completely useless
canpolat@programming.dev · 16 pts · 2y
I believe you can replace
startwith the command that is suitable for your system (e.g.,xdg-openfor linux).mattd@programming.dev · 4 pts · 2y
This is how I was able to get ssh urls to work into something GitHub can open in the browser. Other sites may need more adjustments
Also,
openis the Mac commandtyler@programming.dev · 3 pts · 2y
not that it's a better solution, but a different solution is that for github at least, the
ghcli is fantastic and has commands for opening the repo both in the cli and the browser, and you can also open issues, prs, etc. I havegh prvaliased to open the current branch's PR in the browser.