Closed rEnr3n closed 1 year ago
open
command
last comment url
and use that url instead of the default gh
behavior
# should open this ticket in the default web browser
gh issue view 55 --web --repo meiji163/gh-notify
open https://github.com/meiji163/gh-notify/issues/55
---
- does this python solution work for you
- Ref: [StackOverflow: Shell script to open a URL](https://stackoverflow.com/questions/38147620/shell-script-to-open-a-url) (1/Jul/16)
```sh
python -m webbrowser "https://github.com/meiji163/gh-notify/issues/55"
url="https://github.com/meiji163/gh-notify/issues/55"
if uname | grep -q Darwin; then
open "$url"
elif uname | grep -q Linux; then
xdg-open "$url"
else
start "$url"
fi
thanks for reporting
I'm using linux. All of the commands you suggested work except for the open
command. AFAIK, it's only available in macos. It doesn't exist on a linux system; xdg-open
does.
I pushed a fix, it would be helpful to leave a comment if it solved the problem for you
Confirmed working.
gh notify
ctrl-b
on an issueNothing happens. It works as expected for releases.