oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh

13 lines
275 B
Bash
Raw Normal View History

function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
2014-10-15 13:33:49 +00:00
_gitignoreio_get_command_list() {
curl -fL https://www.gitignore.io/api/list | tr "," "\n"
}
2014-10-15 13:33:49 +00:00
_gitignoreio () {
compset -P '*,'
2014-10-15 13:33:49 +00:00
compadd -S '' `_gitignoreio_get_command_list`
}
2014-10-15 13:33:49 +00:00
compdef _gitignoreio gi