bash.md

 1# Bash
 2
 3Bash language support in Zed is provided by the community-maintained [Basher extension](https://github.com/d1y/bash.zed).
 4Report issues to: [https://github.com/d1y/bash.zed/issues](https://github.com/d1y/bash.zed/issues)
 5
 6- Tree-sitter: [tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash)
 7- Language Server: [bash-lsp/bash-language-server](https://github.com/bash-lsp/bash-language-server)
 8
 9## Configuration
10
11When `shellcheck` is available `bash-language-server` will use it internally to provide diagnostics.
12
13### Install `shellcheck`:
14
15```sh
16brew install shellcheck             # macOS (HomeBrew)
17apt-get install shellcheck          # Ubuntu/Debian
18pacman -S shellcheck                # ArchLinux
19dnf install shellcheck              # Fedora
20yum install shellcheck              # CentOS/RHEL
21zypper install shellcheck           # openSUSE
22choco install shellcheck            # Windows (Chocolatey)
23```
24
25And verify it is available from your path:
26
27```sh
28which shellcheck
29shellcheck --version
30```
31
32If you wish to customize the warnings/errors reported you just need to create a `.shellcheckrc` file. You can do this in the root of your project or in your home directory (`~/.shellcheckrc`). See: [shellcheck documentation](https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-one-or-more-types-of-errors-forever) for more.
33
34### See also:
35
36- [Zed Docs: Language Support: Shell Scripts](./sh.md)