Permalink
Browse files

Use wget for gi function

Older versions of OS X's curl are problematic due to the TLS
requirements of the site.
  • Loading branch information...
1 parent 85de40e commit f42a6b334abaa3b6708631ce35378ba3f89ae3ab @sshaw committed Apr 22, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 bashrc
View
4 bashrc
@@ -148,11 +148,11 @@ _error()
echo "$*" >&2
}
-# Create gitignore files
+# Output gitignore files
# usage: gi list | lang[,lang...]
gi()
{
- curl -L -s https://www.gitignore.io/api/$@
+ wget -O- -q https://www.gitignore.io/api/$1
}
# GitHub grep

0 comments on commit f42a6b3

Please sign in to comment.