bash.md

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