Skip to content

Commit

Permalink
Switch from hub to gh
Browse files Browse the repository at this point in the history
[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
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ What it sets up
* [Bundler] for managing Ruby libraries
* [Exuberant Ctags] for indexing files for vim tab completion
* [Foreman] for serving Rails apps locally
* [gh] for interacting with the GitHub API
* [Heroku Config] for local `ENV` variables
* [Heroku Toolbelt] for interacting with the Heroku API
* [Hub] for interacting with the GitHub API
* [Homebrew] for managing operating system libraries (OS X only)
* [ImageMagick] for cropping and resizing images
* [Node.js] and [NPM], for running apps and installing JavaScript packages
Expand All @@ -78,9 +78,9 @@ What it sets up
[Bundler]: http://bundler.io/
[Exuberant Ctags]: http://ctags.sourceforge.net/
[Foreman]: https://github.com/ddollar/foreman
[gh]: https://github.com/jingweno/gh
[Heroku Config]: https://github.com/ddollar/heroku-config
[Heroku Toolbelt]: https://toolbelt.heroku.com/
[Hub]: https://hub.github.com/
[Homebrew]: http://brew.sh/
[ImageMagick]: http://www.imagemagick.org/
[Node.js]: http://nodejs.org/
Expand Down
16 changes: 13 additions & 3 deletions linux
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,19 @@ fancy_echo "Installing the heroku-config plugin to pull config variables locally
heroku plugins:install git://github.com/ddollar/heroku-config.git
### end linux-components/heroku

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
### end linux-components/github

fancy_echo "Installing rcm, to manage your dotfiles ..."
Expand Down
16 changes: 13 additions & 3 deletions linux-components/github
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
2 changes: 1 addition & 1 deletion mac
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fancy_echo "Installing foreman ..."
### end mac-components/heroku

fancy_echo "Installing GitHub CLI client ..."
brew_install_or_upgrade 'hub'
brew_install_or_upgrade 'gh'
### end mac-components/github

if ! command -v rcup &>/dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion mac-components/github
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'

0 comments on commit 6f392bb

Please sign in to comment.