Skip to content

Commit fe855ac

Browse files
committed
review
1 parent f8a6e98 commit fe855ac

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/src/docs/welcome/integrations.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ The following plugins support `golangci-lint`:
5454

5555
See the instructions on `golangci-lint completion <YOUR_SHELL> --help` (replace `<YOUR_SHELL>` with your favorite one).
5656

57-
### macOS
57+
<details><summary>Bash & macOS</summary>
5858

59-
There 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).
59+
There 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+.
60+
61+
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+.
62+
63+
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)).
64+
65+
The following instructions assume that you use Bash 4.1+ (that is, any Bash version of 4.1 or newer).
6066

6167
Install `bash-completion v2`:
6268

@@ -75,6 +81,8 @@ echo 'source <(golangci-lint completion bash)' >>~/.bashrc
7581
source ~/.bashrc
7682
```
7783

84+
</details>
85+
7886
## CI Integration
7987

8088
See our [GitHub Action](/welcome/install/#github-actions).

0 commit comments

Comments
 (0)