Browse Source

Fix gitignore curl, should follow redirects

WooParadog 10 years ago
parent
commit
04d1428fcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/gitignore/gitignore.plugin.zsh

+ 1 - 1
plugins/gitignore/gitignore.plugin.zsh

@@ -1,4 +1,4 @@
-function gi() { curl https://www.gitignore.io/api/$@ ;}
+function gi() { curl -L https://www.gitignore.io/api/$@ ;}
 
 
 _gitignoreio_get_command_list() {
 _gitignoreio_get_command_list() {
   curl -s https://www.gitignore.io/api/list | tr "," "\n"
   curl -s https://www.gitignore.io/api/list | tr "," "\n"