浏览代码

Added gitignore plugin ( for gitignore.io )

futjikato 10 年之前
父节点
当前提交
33b1a3bcfe
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      custom/plugins/gitignore/gitignore.plugin.zsh

+ 11 - 0
custom/plugins/gitignore/gitignore.plugin.zsh

@@ -0,0 +1,11 @@
+function gi() { curl http://gitignore.io/api/$@ ;}
+
+_gitignireio_get_command_list() {
+  curl -s http://gitignore.io/api/list | tr "," "\n"
+}
+
+_gitignireio () {
+  compadd `_gitignireio_get_command_list`
+}
+
+compdef _gitignireio gi