From b85c72b5f6ed1d33414cc2d9e7afceef12b861e7 Mon Sep 17 00:00:00 2001 From: Tomasz Borek Date: Wed, 25 Apr 2018 14:11:46 +0200 Subject: Better app error handling in curl (#5828) Deals with app error page, saving true error instead. Upon app failure, Heroku returns HTML "Application Error" page. Finding HTML page in .gitignore is confusing, so I replaced `-s` with `-f` in curl calls, which cuts such output. Replace instead of addition as no progress meter outputs either. It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration. -- E. W. Dijkstra --- plugins/gitignore/gitignore.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/gitignore') diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index ba1b38711..f242169e4 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,7 +1,7 @@ -function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} } +function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} } _gitignoreio_get_command_list() { - curl -sL https://www.gitignore.io/api/list | tr "," "\n" + curl -fL https://www.gitignore.io/api/list | tr "," "\n" } _gitignoreio () { -- cgit v1.2.3-70-g09d2 From 5efa5138bf4ab168b1ca197dfdeef0e4c3ade271 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Thu, 14 Jun 2018 23:02:15 +0430 Subject: silence mode of curl (#6898) Uses silence mode of curl for better autocomplete. Co-authored-by: Dominik Rimpf --- plugins/gitignore/gitignore.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/gitignore') diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index f242169e4..15e38d3b7 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,7 +1,7 @@ function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} } _gitignoreio_get_command_list() { - curl -fL https://www.gitignore.io/api/list | tr "," "\n" + curl -sfL https://www.gitignore.io/api/list | tr "," "\n" } _gitignoreio () { -- cgit v1.2.3-70-g09d2 From d7ba91a875c26a4243b5ad553e14e2446d3b48d5 Mon Sep 17 00:00:00 2001 From: Stephan Salzmann Date: Fri, 19 Oct 2018 15:22:09 +0200 Subject: Adding gitignore plugin README --- plugins/gitignore/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/gitignore/README.md (limited to 'plugins/gitignore') diff --git a/plugins/gitignore/README.md b/plugins/gitignore/README.md new file mode 100644 index 000000000..12cf07bca --- /dev/null +++ b/plugins/gitignore/README.md @@ -0,0 +1,14 @@ +# gitignore + +This plugin enables you the use of gitignore.io from the command line. You need an active internet connection. + +To use it, add `gitignore` to the plugins array in your zshrc file: + +```zsh +plugins=(... gitignore) +``` + +## Plugin commands +* `gi list` List displays a list of all of the currently support gitignore.io templates. +* `gi [TEMPLATENAME]` Show output on the command line, e.g. `gi java` to exclude class and package files. +* `gi [TEMPLATENAME] >> .gitignore` Appending programming language settings to your projects .gitignore. -- cgit v1.2.3-70-g09d2 From 6a536f88aad20b4157e7693fa9544c7add3c3320 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Fri, 19 Oct 2018 18:46:29 +0200 Subject: reword and fix formatting --- plugins/gitignore/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/gitignore') diff --git a/plugins/gitignore/README.md b/plugins/gitignore/README.md index 12cf07bca..753dd31fd 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 from the command line. You need an active internet connection. +This plugin enables you the use of [gitignore.io](https://www.gitignore.io/) from the command line. You need an active internet connection. To use it, add `gitignore` to the plugins array in your zshrc file: @@ -9,6 +9,9 @@ plugins=(... gitignore) ``` ## Plugin commands -* `gi list` List displays a list of all of the currently support gitignore.io templates. -* `gi [TEMPLATENAME]` Show output on the command line, e.g. `gi java` to exclude class and package files. -* `gi [TEMPLATENAME] >> .gitignore` Appending programming language settings to your projects .gitignore. + +* `gi list`: List all the currently supported gitignore.io templates. + +* `gi [TEMPLATENAME]`: Show git-ignore output on the command line, e.g. `gi java` to exclude class and package files. + +* `gi [TEMPLATENAME] >> .gitignore`: Appending programming language settings to your projects .gitignore. -- cgit v1.2.3-70-g09d2