浏览代码

Merge pull request #3226 from mcornella/fix-plugin-gitignore

[Plugin: gitignore] Several fixes in the plugin
Robby Russell 10 年之前
父节点
当前提交
c0905fd82c
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      plugins/gitignore/gitignore.plugin.zsh

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

@@ -1,12 +1,12 @@
-function gi() { curl http://www.gitignore.io/api/$@ ;}
+function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
 
-_gitignireio_get_command_list() {
-  curl -s http://www.gitignore.io/api/list | tr "," "\n"
+_gitignoreio_get_command_list() {
+  curl -sL https://www.gitignore.io/api/list | tr "," "\n"
 }
 
-_gitignireio () {
+_gitignoreio () {
   compset -P '*,'
-  compadd -S '' `_gitignireio_get_command_list`
+  compadd -S '' `_gitignoreio_get_command_list`
 }
 
-compdef _gitignireio gi
+compdef _gitignoreio gi