bash.md

 1---
 2title: Bash
 3description: "Configure Bash language support in Zed, including language servers, formatting, and debugging."
 4---
 5
 6# Bash
 7
 8Bash language support in Zed is provided by the community-maintained [Basher extension](https://github.com/d1y/bash.zed).
 9Report issues to: [https://github.com/d1y/bash.zed/issues](https://github.com/d1y/bash.zed/issues)
10
11- Tree-sitter: [tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash)
12- Language Server: [bash-lsp/bash-language-server](https://github.com/bash-lsp/bash-language-server)
13
14## Configuration
15
16When `shellcheck` is available `bash-language-server` will use it internally to provide diagnostics.
17
18### Install `shellcheck`:
19
20```sh
21brew install shellcheck             # macOS (HomeBrew)
22apt-get install shellcheck          # Ubuntu/Debian
23pacman -S shellcheck                # ArchLinux
24dnf install shellcheck              # Fedora
25yum install shellcheck              # CentOS/RHEL
26zypper install shellcheck           # openSUSE
27choco install shellcheck            # Windows (Chocolatey)
28```
29
30And verify it is available from your path:
31
32```sh
33which shellcheck
34shellcheck --version
35```
36
37If 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.
38
39### See also:
40
41- [Zed Docs: Language Support: Shell Scripts](./sh.md)