diff options
author | David LJ <mail@davidlj95.com> | 2023-08-09 18:27:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 18:27:39 +0200 |
commit | 7d2aedf199d1e27b6bea8ab33212043b055b3715 (patch) | |
tree | 7029a7800179bb7a245895fbfe6d28905e7ffb1b /plugins/gitignore | |
parent | 4188b22aea3356a02768505103e42a96d18547a3 (diff) | |
download | zsh-7d2aedf199d1e27b6bea8ab33212043b055b3715.tar.gz zsh-7d2aedf199d1e27b6bea8ab33212043b055b3715.tar.bz2 zsh-7d2aedf199d1e27b6bea8ab33212043b055b3715.zip |
chore(gitignore): use new API endpoint from TopTal (#11835)
Diffstat (limited to 'plugins/gitignore')
-rw-r--r-- | plugins/gitignore/README.md | 2 | ||||
-rw-r--r-- | plugins/gitignore/gitignore.plugin.zsh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gitignore/README.md b/plugins/gitignore/README.md index 753dd31fd..23c7887cf 100644 --- a/plugins/gitignore/README.md +++ b/plugins/gitignore/README.md @@ -1,6 +1,6 @@ # gitignore -This plugin enables you the use of [gitignore.io](https://www.gitignore.io/) from the command line. You need an active internet connection. +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. To use it, add `gitignore` to the plugins array in your zshrc file: diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index a687f5cce..3271d61a9 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,7 +1,7 @@ -function gi() { curl -fLw '\n' https://www.gitignore.io/api/"${(j:,:)@}" } +function gi() { curl -fLw '\n' https://www.toptal.com/developers/gitignore/api/"${(j:,:)@}" } _gitignoreio_get_command_list() { - curl -sfL https://www.gitignore.io/api/list | tr "," "\n" + curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n" } _gitignoreio () { |