1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

Added gitignore plugin ( for gitignore.io )

This commit is contained in:
futjikato 2013-10-04 22:29:33 +02:00
parent 61e3951e4b
commit 33b1a3bcfe

View file

@ -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