gitignore: add newline to `gi` output (#7586)

* Add trailing new line at the end of output
* Double-quote variable expansion
master
Gianluca Recchia 6 years ago committed by GitHub
parent dddbb5c9eb
commit befdb4649b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/gitignore/gitignore.plugin.zsh

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

Loading…
Cancel
Save