ohmyzsh/plugins/gitignore/gitignore.plugin.zsh

13 lines
322 B
Bash
Raw Permalink Normal View History

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