conf2/zsh/.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
vincent 341b34f8fa Revert "add powerlevel10k"
This reverts commit 537a63d601.
2020-06-11 16:59:30 +02:00

13 lines
276 B
Bash

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