Fork of zed-extensions/bash
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] 81f8f6a5ae
Update CI workflows to 3183c04 (#34)
This PR updates the CI workflow files from the main Zed repository
based on the commit
zed-industries/zed@3183c04515

The update includes a new version of the extension CLI which adds
validation for semantic token rules for languages

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-25 18:55:20 +00:00
.github/workflows Update CI workflows to 3183c04 (#34) 2026-03-25 18:55:20 +00:00
assets Update README (#26) 2026-02-04 00:01:23 +00:00
src Use worktree environment for spawning the language server (#24) 2026-02-04 00:37:49 +01:00
.gitignore 0.0.1 2024-03-30 03:48:36 +08:00
Cargo.lock Bump version to 0.0.5 (#27) 2026-02-04 01:03:25 +01:00
Cargo.toml Bump version to 0.0.5 (#27) 2026-02-04 01:03:25 +01:00
extension.toml Bump version to 0.0.5 (#27) 2026-02-04 01:03:25 +01:00
LICENSE Create LICENSE 2025-09-30 11:46:03 -04:00
README.md Update README (#26) 2026-02-04 00:01:23 +00:00

Bash suppport for Zed

Tree-sitter: https://github.com/tree-sitter/tree-sitter-bash

Language Server: https://github.com/bash-lsp/bash-language-server

lsp-example.png

shellcheck

The bash-language-server supports shellcheck. However, you need to install shellcheclk manually

brew install shellcheck         # MacOS
sudo apt-get install shellcheck # Ubuntu / Debian
sudo pacman -S shellcheck       # Arch Linux
choco install shellcheck        # Windows (chocolatey)

Shellcheck ignores

If you wish to ignore certain ShellCheck warnings in your files, you can add an inline comment # shellcheck disable=SC0000 specifying the warning/error.

Alternatively, if you'd like to ignore something for an entire file, put the comment at the top of the file.

For example, to ignore SC2034 foo appears unused. Verify it or export it. in an .env file, it would look like so:

# shellcheck disable=SC2034
FOO=123
BAR="something"
DATABASE_URL="postgres://something"

shfmt

bash-language-server can support formatting using shfmt if it is available in your path. Install with:

brew install shfmt         # MacOS
sudo apt-get install shfmt # Ubuntu / Debian
sudo pacman -S shfmt       # Arch Linux
choco install shfmt        # Windows (chocolatey)

To control automatic formatting you can use format_on_save in your Zed settingts or manually invoke editor: format document from the command palette.