浏览代码

Update gitignore.plugin.zsh

Fix URL to gi (gitignore) function in _gitignireio_get_command_list function
Alexander Hramov 10 年之前
父节点
当前提交
bd4f7e24ea
共有 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 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
+compdef _gitignireio gi