-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Dan Croak
committed
Aug 10, 2014
1 parent
7e7cdcf
commit 6f392bb
Showing
5 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
fancy_echo "Installing GitHub CLI client ..." | ||
curl http://hub.github.com/standalone -sLo ~/.bin/hub | ||
chmod +x ~/.bin/hub | ||
# fancy_echo "Installing GitHub CLI client ..." | ||
version=$(curl https://github.com/jingweno/gh/releases/latest -s | cut -d'v' -f2 | cut -d'"' -f1) | ||
|
||
if test "$(uname -m)" = "x86_64" ; then | ||
arch="amd64" | ||
else | ||
arch="i386" | ||
fi | ||
|
||
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 | ||
chmod +x ~/.bin/gh |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
fancy_echo "Installing GitHub CLI client ..." | ||
brew_install_or_upgrade 'hub' | ||
brew_install_or_upgrade 'gh' |