# babelfish を Homebrew, apt, Nix でインストール

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

## インストール

```sh
sudo av install brew:babelfish
```

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

### macOS

- Homebrew (100%):

```sh
brew install babelfish
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python3-babelfish
```

  証拠: Debian stable package indexes: python3-babelfish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#babelfish
```

  証拠: nixpkgs package indexes: babelfish from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:babelfish
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/babelfish>
- **バージョン:** 1.2.1
- **ソース概要:** Translate bash scripts to fish
- **ホームページ:** <https://github.com/bouk/babelfish>
- **リポジトリ:** <https://github.com/bouk/babelfish>
- **上流ドキュメント:** <https://github.com/bouk/babelfish#readme>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/bouk/babelfish/archive/refs/tags/v1.2.1.tar.gz>
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- babelfish (cli)
- babelfish (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- 注意点: The shell hook has been installed, you can use it by running: $ source $HOMEBREW_PREFIX/share/fish/vendor_functions.d/babel.fish
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 1.2.1
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/bouk/babelfish
- 検出された最新: v1.2.1 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

babelfish is a small command-line translator that converts bash shell snippets or scripts into fish shell code. Its README frames it as a faster alternative to running bash-backed compatibility layers every time fish needs to source shell setup code.

### プロジェクトの歴史

The project was created by Bouke Haarsma to avoid relying on fish-foreign-env or bass for repeated bash process execution. Instead, babelfish parses shell code with mvdan.cc/sh and emits equivalent fish code where possible.

The public GitHub releases show a 1.0.0 release in January 2021, a 1.1.0 release shortly after, and a 1.2.0 release in June 2023. The README still describes limitations, including untranslated variables such as BASH_SOURCE and incomplete arithmetic-expression support.

### 採用の歴史

babelfish's adoption is niche and shell-specific. The README documents Homebrew and Go installation, and the package metadata in this batch shows Homebrew and Nix packaging for this Go-based translator.

Its practical audience is fish users who need to consume bash-oriented environment setup scripts, version-manager hooks, or shell snippets without leaving fish or spawning bash repeatedly.

### 使われ方

Users pipe bash code into babelfish and can then inspect or source the generated fish code. The README demonstrates translating a function, exporting SSH_AUTH_SOCK, setting local variables, and using a shell hook to source bash-oriented setup scripts in fish.

Because its translation coverage is incomplete, babelfish is best treated as a pragmatic bridge for common shell setup patterns rather than a perfect bash interpreter.

### パッケージ好きにとっての重要性

babelfish is package-nerd interesting in the small-tool sense: it exists to smooth over the mismatch between package ecosystems that ship bash activation scripts and users who prefer fish.

It also shows a common CLI pattern in modern packaging: take a mature parser library, here mvdan.cc/sh, and wrap it in a focused translator that solves one irritating shell integration problem.

### タイムライン

- 2021: babelfish 1.0.0 is released on GitHub.
- 2021: babelfish 1.1.0 follows with continued maintenance.
- 2023: babelfish 1.2.0 is released on GitHub.
- 2026: Package metadata in this batch shows babelfish still present in Homebrew and Nix.

### Related projects

- fish is the target shell for generated output.
- bash is the source shell language babelfish translates from.
- fish-foreign-env and bass are named by the README as earlier approaches babelfish was intended to avoid for performance reasons.
- mvdan.cc/sh provides the shell parser used by babelfish.

### ソース

- <https://api.github.com/repos/bouk/babelfish/releases>
- <https://github.com/bouk/babelfish>
- input.json source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** babelfish
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - python3-babelfish - 0.6.1-1: normalized package name match | Debian stable package indexes: python3-babelfish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to work with countries and languages (Python 3) | https://github.com/Diaoul/babelfish
- Nix - babelfish: normalized package name match | nixpkgs package indexes: babelfish from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - python3-babelfish - 0.6.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-babelfish from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to work with countries and languages (Python 3) | https://github.com/Diaoul/babelfish


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/ja/pkg/brew/go/) - Build dependency declared by Homebrew.
- [jump](https://www.automicvault.com/ja/pkg/brew/jump/) - Shares av.db curated category or tags: cli, developer-tools, fish, shell.
- [aliae](https://www.automicvault.com/ja/pkg/brew/aliae/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [argc](https://www.automicvault.com/ja/pkg/brew/argc/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [atuin](https://www.automicvault.com/ja/pkg/brew/atuin/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [atuin-server](https://www.automicvault.com/ja/pkg/brew/atuin-server/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [bar](https://www.automicvault.com/ja/pkg/brew/bar/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [bash-language-server](https://www.automicvault.com/ja/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [bashdb](https://www.automicvault.com/ja/pkg/brew/bashdb/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [powerline-go](https://www.automicvault.com/ja/pkg/brew/powerline-go/) - Local package facts share a topical domain. Shared terms: bash, cli, developer, developer-tools, fish.

## Combined YAML source

View the package source record on GitHub. [combined/babelfish.yml](https://github.com/automic-vault/db/blob/main/combined/babelfish.yml)


## ソース

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