b452cafb163cde6619ac741027251bed2709f78e

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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.

Diff

 1diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh
 2index 484c6a699bedc7b023e163a7ca91d9c44b5d90a0..481d487bad12cf9e39fd3cf01d41234e17f94648 100644
 3--- a/plugins/gitignore/gitignore.plugin.zsh
 4+++ b/plugins/gitignore/gitignore.plugin.zsh
 5@@ -1,7 +1,7 @@
 6-function gi() { curl -L https://www.gitignore.io/api/$@ ;}
 7+function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
 8 
 9 _gitignoreio_get_command_list() {
10-  curl -s https://www.gitignore.io/api/list | tr "," "\n"
11+  curl -sL https://www.gitignore.io/api/list | tr "," "\n"
12 }
13 
14 _gitignoreio () {