Unverified Commit befdb464 authored by Gianluca Recchia's avatar Gianluca Recchia Committed by GitHub
Browse files

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

* Add trailing new line at the end of output
* Double-quote variable expansion
parent dddbb5c9
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"
......
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