From befdb4649b3894cb2c545182810f228e8cb721ae Mon Sep 17 00:00:00 2001 From: Gianluca Recchia Date: Fri, 28 Feb 2020 21:00:44 +0100 Subject: [PATCH] gitignore: add newline to `gi` output (#7586) * Add trailing new line at the end of output * Double-quote variable expansion --- plugins/gitignore/gitignore.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index 15e38d3b7..a687f5cce 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/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"