浏览代码

Follow-redirect and silent mode curl throughout gitignore

This commit completes previous efforts and standardizes both curl commands
into using silent mode and following redirects in case the URL changes
again in the future.
Marc Cornellà 9 年之前
父节点
当前提交
b452cafb16
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/gitignore/gitignore.plugin.zsh

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

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