From b9a5edaa682862a3888e8e95f2e17b9645b3f246 Mon Sep 17 00:00:00 2001 From: Oliver Heard Date: Wed, 15 Jan 2014 21:26:39 +0000 Subject: [PATCH] Updated gitignore plugin as per website notice The notice at http://www.gitignore.io/cli is reproduced verbatim below for future reference: On January 6th, 2014 gitignore.io moved to Heroku which doesn't allow naked domains. If your gi command is not functioning, update your script to point to www.gitignore.io instead of gitignore.io --- plugins/gitignore/gitignore.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index 332497cec..be037d87a 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,7 +1,7 @@ -function gi() { curl http://gitignore.io/api/$@ ;} +function gi() { curl http://www.gitignore.io/api/$@ ;} _gitignireio_get_command_list() { - curl -s http://gitignore.io/api/list | tr "," "\n" + curl -s http://www.gitignore.io/api/list | tr "," "\n" } _gitignireio () { @@ -9,4 +9,4 @@ _gitignireio () { compadd -S '' `_gitignireio_get_command_list` } -compdef _gitignireio gi \ No newline at end of file +compdef _gitignireio gi