mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
gitignore: add newline to gi output (#7586)
* Add trailing new line at the end of output * Double-quote variable expansion
This commit is contained in:
@@ -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() {
|
_gitignoreio_get_command_list() {
|
||||||
curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
|
curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user