You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
19
19
*[Trusted By](#trusted-by)
20
20
*[Quick Start](#quick-start)
21
21
*[Editor Integration](#editor-integration)
22
+
*[Shell Completion](#shell-completion)
22
23
*[Comparison](#comparison)
23
24
*[Performance](#performance)
24
25
*[Internals](#internals)
@@ -250,6 +251,35 @@ golangci-lint run --disable-all -E errcheck
250
251
* ale [merged pull request](https://github.com/w0rp/ale/pull/1890) with golangci-lint support
251
252
6. Atom - [go-plus](https://atom.io/packages/go-plus) supports golangci-lint.
252
253
254
+
## Shell Completion
255
+
256
+
`golangci-lint` can generate bash completion file.
257
+
258
+
### Mac OS X
259
+
260
+
Yhere are two versions of `bash-completion`, v1 and v2. V1 is for Bash 3.2 (which is the default on macOS), and v2 is for Bash 4.1+. The `golangci-lint` completion script doesn’t work correctly with bash-completion v1 and Bash 3.2. It requires bash-completion v2 and Bash 4.1+. Thus, to be able to correctly use `golangci-lint` completion on macOS, you have to install and use Bash 4.1+ ([instructions](https://itnext.io/upgrading-bash-on-macos-7138bd1066ba)). The following instructions assume that you use Bash 4.1+ (that is, any Bash version of 4.1 or newer).
See [kubectl instructions](https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion) and don't forget to replace `kubectl` with `golangci-lint`.
Copy file name to clipboardExpand all lines: README.tmpl.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
19
19
*[Trusted By](#trusted-by)
20
20
*[Quick Start](#quick-start)
21
21
*[Editor Integration](#editor-integration)
22
+
*[Shell Completion](#shell-completion)
22
23
*[Comparison](#comparison)
23
24
*[Performance](#performance)
24
25
*[Internals](#internals)
@@ -217,6 +218,35 @@ golangci-lint run --disable-all -E errcheck
217
218
* ale [merged pull request](https://github.com/w0rp/ale/pull/1890) with golangci-lint support
218
219
6. Atom - [go-plus](https://atom.io/packages/go-plus) supports golangci-lint.
219
220
221
+
## Shell Completion
222
+
223
+
`golangci-lint` can generate bash completion file.
224
+
225
+
### Mac OS X
226
+
227
+
Yhere are two versions of `bash-completion`, v1 and v2. V1 is for Bash 3.2 (which is the default on macOS), and v2 is for Bash 4.1+. The `golangci-lint` completion script doesn’t work correctly with bash-completion v1 and Bash 3.2. It requires bash-completion v2 and Bash 4.1+. Thus, to be able to correctly use `golangci-lint` completion on macOS, you have to install and use Bash 4.1+ ([instructions](https://itnext.io/upgrading-bash-on-macos-7138bd1066ba)). The following instructions assume that you use Bash 4.1+ (that is, any Bash version of 4.1 or newer).
See [kubectl instructions](https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion) and don't forget to replace `kubectl` with `golangci-lint`.
0 commit comments