diff options
author | Marc Cornellà <marc.cornella@live.com> | 2014-10-15 17:17:04 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2014-10-22 18:13:15 +0200 |
commit | b452cafb163cde6619ac741027251bed2709f78e (patch) | |
tree | d08edf87dd0c0e993a7a82a0d61c255818b1196a | |
parent | 04d1428fcbda05a96d54396679c6c74c7006b032 (diff) | |
download | zsh-b452cafb163cde6619ac741027251bed2709f78e.tar.gz zsh-b452cafb163cde6619ac741027251bed2709f78e.tar.bz2 zsh-b452cafb163cde6619ac741027251bed2709f78e.zip |
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.
-rw-r--r-- | plugins/gitignore/gitignore.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index 484c6a699..481d487ba 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/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 () { |