{"id":46162688,"url":"https://github.com/matkrin/bashd","last_synced_at":"2026-06-08T07:07:28.154Z","repository":{"id":318122008,"uuid":"1025073633","full_name":"matkrin/bashd","owner":"matkrin","description":"Bash language server","archived":false,"fork":false,"pushed_at":"2026-06-07T08:15:50.000Z","size":287,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T09:22:08.977Z","etag":null,"topics":["bash","bash-scripting","language-server","lsp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matkrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-23T17:18:07.000Z","updated_at":"2026-06-06T05:19:44.000Z","dependencies_parsed_at":"2025-10-05T09:13:53.002Z","dependency_job_id":"4eeddc2c-363f-4df9-a283-cf7cba1c52a0","html_url":"https://github.com/matkrin/bashd","commit_stats":null,"previous_names":["matkrin/bashd"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/matkrin/bashd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matkrin%2Fbashd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matkrin%2Fbashd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matkrin%2Fbashd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matkrin%2Fbashd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matkrin","download_url":"https://codeload.github.com/matkrin/bashd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matkrin%2Fbashd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34051822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-scripting","language-server","lsp"],"created_at":"2026-03-02T11:31:00.977Z","updated_at":"2026-06-08T07:07:28.149Z","avatar_url":"https://github.com/matkrin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bashd\n\nbashd is a Language Server Protocol (LSP) implementation for Bash, built using\nthe Go [sh](https://github.com/mvdan/sh/) package and featuring\n[ShellCheck](https://github.com/koalaman/shellcheck) integration for real-time\nlinting.\n\n## Features\n\n### Diagnostics\n\n- Check if sourced file exists\n- [Parser](https://github.com/mvdan/sh/) errors\n- [ShellCheck](https://github.com/koalaman/shellcheck) lints\n- For document on document change\n- For workspace on initialize\n\n### Hover\n\n- Show `help` output as docs for keywords and builtins\n- Show man page as docs for executables\n- Show location of assignment for variables\n- Show location and body for functions\n\n### Definition\n\n- Variable assignment in document and sourced files\n- Function declaration in document and sourced files\n- Sourced file itself\n\n### References\n\n- Function calls in current document and sourced files\n- Variable usage in current document and sourced files\n- Function calls in workspace file which source the current file\n- Variable usage in workspace file which source the current file\n- Depending on `ReferenceContext.includeDeclaration` function declarations and\n  variable assignments\n\n### Rename\n\n- Function declarations and calls in document and sourced files\n- Variable assignments and usage in document and sourced files\n- Function declarations and calls in workspace file which source the current\n  file\n- Variable assignments and usage in workspace file which source the current file\n\n### Completion\n\n- Variables declared in document (on `$` and `{`)\n- Functions declared in document\n- Environment variables (on `$` and `{`)\n- Keywords\n- Executables in PATH\n- Resolve with `help` output as docs for keywords and builtins\n- Resolve with man page as docs for executables\n- Snippets\n\n### Document Symbols\n\n- Variable assignment in document\n- Function declaration in document\n\n### Workspace Symbols\n\n- Variable assignment in workspace .sh files and scripts without extension but\n  shebang\n- Function declaration in workspace .sh files and scripts without extension but\n  shebang\n\n### Formatting\n\n- Entire file\n- Range formatting (as long as range covers nodes that can be formatted)\n\n### Code Actions\n\n- Fix for shellcheck lints (position dependent)\n- Add ignore comment for shellcheck lints (position dependent)\n- Fix all auto-fixable lints (only when there are fixable lints)\n- Add shebang if not exist\n- Minify script\n\n### Inlay Hint\n\n- [SGR][sgr] ANSI escapes\n\n### Document Colors\n\n- [256-color (8-bit)][8b-color] foreground (`\\x1b[38;5;\u003cn\u003em`) and background\n  (`\\x1b[48;5;\u003cn\u003em`)\n- [True color (24-bit)][24b-color] foreground(`\\x1b[38;2;\u003cr\u003e;\u003cg\u003e;\u003cb\u003em`) and\n  background (`\\x1b[48;2;\u003cr\u003e;\u003cg\u003e;\u003cb\u003em`)\n- [3-bit / 4-bit color][3-4b-color] foreground (`\\x1b[\u003cn\u003em`; n ∈ [30,37] ∪\n  [90,97]) and background (`\\x1b[\u003cn\u003em`; n ∈ [40,47] ∪ [100,107])\n- Also alternative escapes `\\e` and `\\033`\n\n## Installation\n\nIf you have Go installed (v1.17+), you can install bashd directly with:\n\n```sh\ngo install github.com/matkrin/bashd/cmd/bashd@latest\n```\n\nThis will download, build, and install the binary to `$HOME/go/bin`, make sure\nit is is in your system’s `PATH`:\n\n```sh\nexport PATH=\"${HOME}/go/bin:${PATH}\"\n```\n\nAdditionally, precompiled binaries are available for Linux, macOS, and Windows\nin the [releases section](https://github.com/matkrin/bashd/releases).\n\n## Setup\n\n### Neovim\n\nWith Neovim version 0.11+, you can use bashd without plugins:\n\n```lua\nvim.lsp.config.bashd = {\n    cmd = { \"bashd\" },\n    filetypes = { \"bash\", \"sh\" },\n    root_markers = { \".git\" },\n}\n\nvim.lsp.enable(\"bashd\")\n```\n\nWith [lspconfig](https://github.com/neovim/nvim-lspconfig):\n\n```lua\nlocal lspconfig = require(\"lspconfig\")\nlocal configs = require(\"lspconfig.configs\")\n\nconfigs.bashd = {\n    default_config = {\n        name = \"bashd\",\n        cmd = { \"bashd\" },\n        filetypes = { \"bash\", \"sh\" },\n        root_dir = lspconfig.util.root_pattern(\".git\"),\n    },\n}\n\nlspconfig.bashd.setup({})\n```\n\n### Helix\n\nIn languages.toml:\n\n```toml\n[language-server.bashd]\ncommand = \"bashd\"\nroots = [\".git\"]\n\n[[language]]\nname = \"bash\"\nlanguage-servers = [{ name = \"bashd\" }]\n```\n\nSee [bashd (1)](/docs/bashd.1.md) for all\n[configuration options](/docs/bashd.1.md#CONFIGURATION) and\nfull [examples](/docs/bashd.1.md#EXAMPLES).\n\n[sgr]: https://en.wikipedia.org/wiki/ANSI_escape_code#Select_Graphic_Rendition_parameters\n[8b-color]: https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit\n[24b-color]: https://en.wikipedia.org/wiki/ANSI_escape_code#24-bit\n[3-4b-color]: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatkrin%2Fbashd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatkrin%2Fbashd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatkrin%2Fbashd/lists"}