-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from hub
to gh
#273
Conversation
|
||
url="https://github.com/jingweno/gh/releases/download/v${version}/gh_${version}_${arch}.deb" | ||
curl $url -sLo ~/.bin/gh.deb | ||
sudo dpkg -i ~/.bin/gh.deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's a ".deb", doesn't that mean it can be installed like a normal package, putting the executable wherever the package dictates (e.g. /usr/bin/gh
)?
/cc @djcp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure what you mean, @pbrisbin. I would not download the .deb package into ~/.bin/
, though. I'd download the .deb to /tmp/
, install, and then remove afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume sudo dpkg -i foo.deb
is installing the package globally, as if it had come from the repos. I also assume such an installation puts the binary in the usual place. So I'm confused why the next line (chmod +x ~/.bin/gh
) is happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping a repo would magically appear for this, but I'm happy you pushed this forward @croaky and think this is great. Let me know if you have time to clean this up, otherwise I can move it forward. |
@djcp If you could push it forward, that would be great. I really meant for the Linux version to be a spike / starting point. I wasn't fully testing it on my Mac and figured it was rough / horridly written, that it would need someone else's attention before being merged. |
I pushed all the style changes. |
@pbrisbin Would it be possible for you to push the Linux version over the finish line? |
Yes, sorry I meant to but forgot. Will look at it again this week. @pbrisbin https://github.com/pbrisbin Would it be possible for you to — |
Awesome, thanks. No worries. I forgot about it, too, until I hopped in On Sun, Sep 21, 2014 at 5:50 PM, pat brisbin [email protected]
|
[gh] is a [hub] reimplementation that's much faster and is now the official Github CLI. It appears that "hub" is [deprecated]. [gh]: https://github.com/jingweno/gh [hub]: https://github.com/github/hub [deprecated]: mislav/hub#475
gh is a hub reimplementation that's much faster and is now the official
Github CLI. It appears that "hub" is deprecated.