diff options
author | low-ghost <lowghost.clone@gmail.com> | 2015-12-23 08:47:05 -0500 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-01-18 21:54:10 +0100 |
commit | 494b07b093aaaf3bdc05946cd5daae64847d4744 (patch) | |
tree | 354376394f4c7994a51f5ae27d37b81d27f74360 /plugins/gitignore | |
parent | d60cf5cb1079a2f523deab38eeb810b6959781da (diff) | |
download | zsh-494b07b093aaaf3bdc05946cd5daae64847d4744.tar.gz zsh-494b07b093aaaf3bdc05946cd5daae64847d4744.tar.bz2 zsh-494b07b093aaaf3bdc05946cd5daae64847d4744.zip |
Update gitignore.plugin: comma separated arguments
Seems like this is more like the intended effect, splits arguments with commas
for proper gitignore.io api request.
Thanks for teaching me about custom compdef completions!
Updated with zsh join operator by Marc Cornellà
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 481d487ba..ba1b38711 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,4 +1,4 @@ -function gi() { curl -sL https://www.gitignore.io/api/$@ ;} +function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} } _gitignoreio_get_command_list() { curl -sL https://www.gitignore.io/api/list | tr "," "\n" |