File tree 5 files changed +30
-10
lines changed
5 files changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ What it sets up
55
55
* [ Bundler] for managing Ruby libraries
56
56
* [ Exuberant Ctags] for indexing files for vim tab completion
57
57
* [ Foreman] for serving Rails apps locally
58
+ * [ gh] for interacting with the GitHub API
58
59
* [ Heroku Config] for local ` ENV ` variables
59
60
* [ Heroku Toolbelt] for interacting with the Heroku API
60
- * [ Hub] for interacting with the GitHub API
61
61
* [ Homebrew] for managing operating system libraries (OS X only)
62
62
* [ ImageMagick] for cropping and resizing images
63
63
* [ Node.js] and [ NPM] , for running apps and installing JavaScript packages
@@ -78,9 +78,9 @@ What it sets up
78
78
[ Bundler ] : http://bundler.io/
79
79
[ Exuberant Ctags ] : http://ctags.sourceforge.net/
80
80
[ Foreman ] : https://github.com/ddollar/foreman
81
+ [ gh ] : https://github.com/jingweno/gh
81
82
[ Heroku Config ] : https://github.com/ddollar/heroku-config
82
83
[ Heroku Toolbelt ] : https://toolbelt.heroku.com/
83
- [ Hub ] : https://hub.github.com/
84
84
[ Homebrew ] : http://brew.sh/
85
85
[ ImageMagick ] : http://www.imagemagick.org/
86
86
[ Node.js ] : http://nodejs.org/
Original file line number Diff line number Diff line change @@ -178,9 +178,19 @@ fancy_echo "Installing the heroku-config plugin to pull config variables locally
178
178
heroku plugins:install git://github.com/ddollar/heroku-config.git
179
179
# ## end linux-components/heroku
180
180
181
- fancy_echo " Installing GitHub CLI client ..."
182
- curl http://hub.github.com/standalone -sLo ~ /.bin/hub
183
- chmod +x ~ /.bin/hub
181
+ # fancy_echo "Installing GitHub CLI client ..."
182
+ version=$( curl https://github.com/jingweno/gh/releases/latest -s | cut -d' v' -f2 | cut -d' "' -f1)
183
+
184
+ if test " $( uname -m) " = " x86_64" ; then
185
+ arch=" amd64"
186
+ else
187
+ arch=" i386"
188
+ fi
189
+
190
+ url=" https://github.com/jingweno/gh/releases/download/v${version} /gh_${version} _${arch} .deb"
191
+ curl $url -sLo ~ /.bin/gh.deb
192
+ sudo dpkg -i ~ /.bin/gh.deb
193
+ chmod +x ~ /.bin/gh
184
194
# ## end linux-components/github
185
195
186
196
fancy_echo " Installing rcm, to manage your dotfiles ..."
Original file line number Diff line number Diff line change 1
- fancy_echo "Installing GitHub CLI client ..."
2
- curl http://hub.github.com/standalone -sLo ~/.bin/hub
3
- chmod +x ~/.bin/hub
1
+ # fancy_echo "Installing GitHub CLI client ..."
2
+ version=$(curl https://github.com/jingweno/gh/releases/latest -s | cut -d'v' -f2 | cut -d'"' -f1)
3
+
4
+ if test "$(uname -m)" = "x86_64" ; then
5
+ arch="amd64"
6
+ else
7
+ arch="i386"
8
+ fi
9
+
10
+ url="https://github.com/jingweno/gh/releases/download/v${version}/gh_${version}_${arch}.deb"
11
+ curl $url -sLo ~/.bin/gh.deb
12
+ sudo dpkg -i ~/.bin/gh.deb
13
+ chmod +x ~/.bin/gh
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ fancy_echo "Installing foreman ..."
221
221
# ## end mac-components/heroku
222
222
223
223
fancy_echo " Installing GitHub CLI client ..."
224
- brew_install_or_upgrade ' hub '
224
+ brew_install_or_upgrade ' gh '
225
225
# ## end mac-components/github
226
226
227
227
if ! command -v rcup & > /dev/null; then
Original file line number Diff line number Diff line change 1
1
fancy_echo "Installing GitHub CLI client ..."
2
- brew_install_or_upgrade 'hub '
2
+ brew_install_or_upgrade 'gh '
You can’t perform that action at this time.
0 commit comments