summaryrefslogtreecommitdiff
path: root/custom/plugins/gitignore/gitignore.plugin.zsh
diff options
context:
space:
mode:
authorfutjikato <m.spindelhirn@cashiers-check.de>2013-10-04 22:29:33 +0200
committerfutjikato <m.spindelhirn@cashiers-check.de>2013-10-04 22:29:33 +0200
commit33b1a3bcfed1d52d48a3a467f81da1599d2fa883 (patch)
tree81b16fc3178d2a74f96a632d8e0b4a3b5f6f9495 /custom/plugins/gitignore/gitignore.plugin.zsh
parent61e3951e4be2f496d8ce8022afc58817c06e5dee (diff)
downloadzsh-33b1a3bcfed1d52d48a3a467f81da1599d2fa883.tar.gz
zsh-33b1a3bcfed1d52d48a3a467f81da1599d2fa883.tar.bz2
zsh-33b1a3bcfed1d52d48a3a467f81da1599d2fa883.zip
Added gitignore plugin ( for gitignore.io )
Diffstat (limited to 'custom/plugins/gitignore/gitignore.plugin.zsh')
-rw-r--r--custom/plugins/gitignore/gitignore.plugin.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/custom/plugins/gitignore/gitignore.plugin.zsh b/custom/plugins/gitignore/gitignore.plugin.zsh
new file mode 100644
index 000000000..1b866c0d0
--- /dev/null
+++ b/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 \ No newline at end of file