7d2aedf199d1e27b6bea8ab33212043b055b3715

Author
David LJ <mail@davidlj95.com>
Committer
GitHub <noreply@github.com>
Date

Message

chore(gitignore): use new API endpoint from TopTal (#11835)

Diff

 1diff --git a/plugins/gitignore/README.md b/plugins/gitignore/README.md
 2index 753dd31fd39a893d95d9d255221ba36947b18aa5..23c7887cfef4720e14428d6d8c0fb5f5a5fef3cd 100644
 3--- a/plugins/gitignore/README.md
 4+++ b/plugins/gitignore/README.md
 5@@ -1,6 +1,6 @@
 6 # gitignore
 7 
 8-This plugin enables you the use of [gitignore.io](https://www.gitignore.io/) from the command line. You need an active internet connection.
 9+This plugin enables you the use of [gitignore.io](https://www.toptal.com/developers/gitignore) from the command line. You need an active internet connection.
10 
11 To use it, add `gitignore` to the plugins array in your zshrc file:
12 
13diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh
14index a687f5cce2893b1973ba578cebc04fe8c93c74bf..3271d61a99a52cb4196898c09967a71708c85b34 100644
15--- a/plugins/gitignore/gitignore.plugin.zsh
16+++ b/plugins/gitignore/gitignore.plugin.zsh
17@@ -1,7 +1,7 @@
18-function gi() { curl -fLw '\n' https://www.gitignore.io/api/"${(j:,:)@}" }
19+function gi() { curl -fLw '\n' https://www.toptal.com/developers/gitignore/api/"${(j:,:)@}" }
20 
21 _gitignoreio_get_command_list() {
22-  curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
23+  curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n"
24 }
25 
26 _gitignoreio () {