# bash-language-server を Homebrew, MacPorts, Nix, pacman でインストール

bash-language-server のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:bash-language-server
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install bash-language-server
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bash-language-server
```

  証拠: MacPorts ports tree: devel/bash-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bash-language-server
```

  証拠: 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

- pacman (92%):

```sh
sudo pacman -S bash-language-server
```

  証拠: Arch Linux sync databases: bash-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:bash-language-server
- **パッケージマネージャ:** Homebrew
- **バージョン:** 5.6.0
- **ソース概要:** Language Server for Bash
- **ホームページ:** <https://github.com/bash-lsp/bash-language-server>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- bash-language-server (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 5.6.0
## プロジェクトの歴史と使われ方

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.


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- Nix - bash-language-server: normalized package name match | 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
- pacman - bash-language-server - 5.6.0-1: normalized package name match | Arch Linux sync databases: bash-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Bash language server implementation based on Tree Sitter and its grammar for Bash | https://github.com/bash-lsp/bash-language-server
- MacPorts - bash-language-server: normalized package name match | MacPorts ports tree: devel/bash-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/bash-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bash-language-server.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
