diff options
author | Gianluca Recchia <gianluca.recchia97@gmail.com> | 2020-02-28 21:00:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 21:00:44 +0100 |
commit | befdb4649b3894cb2c545182810f228e8cb721ae (patch) | |
tree | 752b9f1d68e126b0dfd1989c2e0b4f925e88ee0c /plugins/gitignore | |
parent | dddbb5c9ebe0805750c0b8c0282ca86f1c6b1818 (diff) | |
download | zsh-befdb4649b3894cb2c545182810f228e8cb721ae.tar.gz zsh-befdb4649b3894cb2c545182810f228e8cb721ae.tar.bz2 zsh-befdb4649b3894cb2c545182810f228e8cb721ae.zip |
gitignore: add newline to `gi` output (#7586)
* Add trailing new line at the end of output
* Double-quote variable expansion
Diffstat (limited to 'plugins/gitignore')
-rw-r--r-- | plugins/gitignore/gitignore.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |