packages/shared-skills/skills/lsp-setup/references/bash/README.md
bash — bash-language-server start.sh .bash .zsh .kshnpm install -g bash-language-serverAn alias id bash-ls exists with the identical command; either id works.
npm install -g bash-language-servernpm install -g bash-language-servernpm install -g bash-language-server (PowerShell)For real diagnostics, also install shellcheck:
brew install shellcheckapt install shellcheck (or dnf install ShellCheck)scoop install shellcheckConfirm it resolves:
command -v bash-language-server
command -v shellcheck
Builtin — usually NO config needed (auto-resolved by extension). Configure only to set priority, init options, override extensions, or disable. Same JSON shape in .codex/lsp-client.json (Codex) AND .opencode/lsp.json (OpenCode/omo):
{ "lsp": { "bash": { "priority": 100 } } }
For builtin ids in a PROJECT config, command is supplied automatically — only set priority/initialization/extensions/disabled/env. A fully custom (non-builtin) server with its own command must go in the USER config (~/.codex/lsp-client.json).
None commonly required. bash-language-server discovers shellcheck on PATH automatically. To point at a non-PATH binary, export SHELLCHECK_PATH via env:
{ "lsp": { "bash": { "env": { "SHELLCHECK_PATH": "/opt/bin/shellcheck" } } } }
shellcheck standalone as a linter-only flow (no LSP).shfmt for formatting (complements, does not replace, the LSP).bash-language-server on PATH; reopen shell after npm -g install.shellcheck missing — diagnostics are powered by it; install and reopen..zsh/.ksh are linted as bash; shellcheck may flag shell-specific syntax.bun ../../scripts/verify-lsp.ts path/to/file.sh