Commit 494b07b0 authored by low-ghost's avatar low-ghost Committed by Marc Cornellà
Browse files

Update gitignore.plugin: comma separated arguments

Seems like this is more like the intended effect, splits arguments with commas
for proper gitignore.io api request.
Thanks for teaching me about custom compdef completions!

Updated with zsh join operator by Marc Cornellà
parent d60cf5cb
function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() {
curl -sL https://www.gitignore.io/api/list | tr "," "\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment