Browse Source

Added gitignore plugin ( for gitignore.io )

futjikato 11 years ago
parent
commit
33b1a3bcfe
1 changed files with 11 additions and 0 deletions
  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