Skip to content

Commit 70a1d88

Browse files
committed
docs: update macOS completion manual for zsh
1 parent c3e693d commit 70a1d88

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/src/docs/welcome/integrations.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ The following plugins support `golangci-lint`:
5454

5555
### macOS
5656

57-
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).
57+
#### Zsh
58+
59+
To use `golangci-lint` completion on macOS with `zsh`, which is the default shell since Catalina,
60+
follow the instructions on `golangci-lint completion zsh --help`.
61+
62+
#### Bash
63+
64+
There are two versions of `bash-completion`, v1 and v2. V1 is for Bash 3.2 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).
5865

5966
Install `bash-completion v2`:
6067

0 commit comments

Comments
 (0)