1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-21 07:20:09 +00:00

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à
This commit is contained in:
low-ghost 2015-12-23 08:47:05 -05:00 committed by Marc Cornellà
parent d60cf5cb10
commit 494b07b093

View file

@ -1,4 +1,4 @@
function gi() { curl -sL https://www.gitignore.io/api/$@ ;} function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() { _gitignoreio_get_command_list() {
curl -sL https://www.gitignore.io/api/list | tr "," "\n" curl -sL https://www.gitignore.io/api/list | tr "," "\n"