Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix, pacman 安装 bash-language-server

查看 bash-language-server 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bash-language-server

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bash-language-server

MacPorts ports tree · devel/bash-language-server/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#bash-language-server

nixpkgs package indexes · pkgs/by-name/ba/bash-language-server/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S bash-language-server

Arch Linux sync databases · bash-language-server · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Language Server for Bash

命令和别名

  • bash-language-server

历史

项目历史与用法

Bash Language Server is an implementation of the Language Server Protocol for shell scripts. It packages the modern editor-LSP idea for one of the oldest daily-use programming environments: Bourne-style shell scripting.

项目历史

The official README describes Bash Language Server as bringing an IDE-like experience for Bash scripts to most editors. It is based on the Tree-sitter Bash parser and integrates with explainshell, ShellCheck, and shfmt.

The project is written for editor integration rather than direct end-user scripting. Its releases are split across server and VS Code client tags, and the README documents installing the server binary from npm or distribution packages for editors that already have generic LSP clients.

采用历史

Its adoption follows the spread of LSP support from VS Code into Vim, Neovim, Emacs, Sublime Text, Helix, Eclipse, JupyterLab, and other editors. The official README lists clients for all of those editor families, which is the project's real adoption story: one server reused by many editor integrations.

The batch input shows Homebrew, MacPorts, Nix, and Arch packaging. That packaging matters because shell scripting is often edited outside Node-centric workflows, so system package managers make the server available to users who only need the `bash-language-server` executable.

使用方式

Users install `bash-language-server`, configure an editor LSP client to run `bash-language-server start`, and optionally install ShellCheck for diagnostics and shfmt for formatting. The README includes editor-specific setup snippets for Vim, Neovim, coc.nvim, ALE, Emacs lsp-mode, Emacs eglot, and other clients.

Configuration is mainly editor/workspace configuration plus environment variables such as `BASH_IDE_LOG_LEVEL`; the README points detailed configuration variables to the project's `config.ts` source.

为什么软件包爱好者会关心

Bash Language Server is package-nerd interesting because it makes shell tooling look like the rest of the LSP era. Instead of each editor shipping its own Bash intelligence, package managers can distribute one server that composes Tree-sitter parsing, ShellCheck linting, shfmt formatting, and editor-native LSP clients.

It is also a reminder that even mature Unix scripting ecosystems keep absorbing new developer-tool protocols. The package is small, but it connects Bash to modern editor workflows without replacing Bash itself.

时间线

  • 2010s: Language Server Protocol adoption makes reusable editor backends common outside VS Code.
  • 2010s: Bash Language Server appears with separate server and VS Code client release tags.
  • 2020s: README documents broad editor support including Vim, Neovim, Emacs, Sublime Text, Helix, Eclipse, and JupyterLab.
  • 2020s: Homebrew, MacPorts, Nix, and Arch package the server executable.

Related projects

  • The official README names Tree-sitter Bash, explainshell, ShellCheck, and shfmt as the main related projects. It also relates the server to editor LSP clients such as Bash IDE for VS Code, vim-lsp, nvim-lspconfig, coc.nvim, ALE, lsp-mode, and eglot.

来源

  • Official GitHub releases page exposes server and VS Code client release streams.
  • Official README describes the LSP purpose, Tree-sitter basis, ShellCheck and shfmt integrations, installation, clients, and logging.
  • Official config.ts is cited by the README for configuration variables.
  • input.source_facts.package-manager lists Homebrew, MacPorts, Nix, and Arch packaging.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bash-language-servercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-24
管理器版本5.6.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:bash-language-server
版本5.6.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bash-language-server
主页https://github.com/bash-lsp/bash-language-server
仓库https://github.com/bash-lsp/bash-language-server
上游文档https://github.com/bash-lsp/bash-language-server#readme
许可证MIT
源码归档https://registry.npmjs.org/bash-language-server/-/bash-language-server-5.6.0.tgz
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebash-language-server
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

bash-language-server

nix profile install nixpkgs#bash-language-server
  • normalized package name match
  • 匹配方式:Bash Language Server
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bash-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

bash-language-server 5.6.0-1

Bash language server implementation based on Tree Sitter and its grammar for Bash

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

sudo pacman -S bash-language-server
  • License: MIT
  • Architecture: any
  • 1 依赖
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Bash Language Server
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bash-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

bash-language-server

sudo port install bash-language-server
  • normalized package name match
  • 匹配方式:Bash Language Server
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/bash-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment