33b1a3bcfed1d52d48a3a467f81da1599d2fa883
- Author
- futjikato <m.spindelhirn@cashiers-check.de>
- Committer
- futjikato <m.spindelhirn@cashiers-check.de>
- Date
Message
Added gitignore plugin ( for gitignore.io )
Diff
1diff --git a/custom/plugins/gitignore/gitignore.plugin.zsh b/custom/plugins/gitignore/gitignore.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..1b866c0d0b586bd98c2eaa1b9053be75dd5b28b4
4--- /dev/null
5+++ b/custom/plugins/gitignore/gitignore.plugin.zsh
6@@ -0,0 +1,11 @@
7+function gi() { curl http://gitignore.io/api/$@ ;}
8+
9+_gitignireio_get_command_list() {
10+ curl -s http://gitignore.io/api/list | tr "," "\n"
11+}
12+
13+_gitignireio () {
14+ compadd `_gitignireio_get_command_list`
15+}
16+
17+compdef _gitignireio gi