# mdsh を Homebrew, dnf, Nix でインストール

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

## インストール

```sh
sudo av install brew:mdsh
```

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

### macOS

- Homebrew (100%):

```sh
brew install mdsh
```

  証拠: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install mdsh
```

  証拠: Fedora Rawhide package metadata: mdsh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mdsh
```

  証拠: nixpkgs package indexes: pkgs/by-name/md/mdsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:mdsh
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.9.2
- **ソース概要:** Markdown shell pre-processor
- **ホームページ:** <https://zimbatm.github.io/mdsh/>
- **リポジトリ:** <https://github.com/zimbatm/mdsh>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- mdsh (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

mdsh is a Rust Markdown shell preprocessor that updates Markdown files in place by including files, executing commands, and refreshing generated blocks. The project describes itself as similar to literate programming or notebooks, but for shell commands in Markdown.

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

The public repository was created on 2019-02-15. Its README explains the original problem as keeping README snippets, command output, and embedded file contents synchronized without manually copying text.

Unlike many preprocessors that emit a separate generated file, mdsh is designed around idempotent in-place updates. The README and project site document a compact Markdown extension for command blocks, comments, links, raw Markdown output, code-block output, and shell variable expansion.

### 採用の歴史

Official installation instructions recommend `cargo install mdsh`, Nix installation, Nix flakes, and use as a pre-commit hook. The input package-manager facts list Homebrew, dnf, and Nix packages.

GitHub metadata showed ongoing maintenance through 2026 and a modest but real open-source footprint, with repository topics around Markdown, pre-processing, and shell.

### 使われ方

By default, `mdsh` processes `./README.md`; `--inputs`, `--output`, and `--work-dir` let users choose files and execution directories. The `--frozen` mode is intended for CI checks that fail when generated documentation is stale.

The README documents commands for reading files, executing shell commands, producing raw Markdown or code blocks, expanding environment variables, cleaning generated blocks, and installing mdsh as a pre-commit hook.

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

mdsh matters to package-oriented developers because it turns a README into a reproducible build artifact without leaving Markdown. It is small, scriptable, CI-friendly, and sits in the same culture as literate shell docs, generated examples, and pre-commit-enforced documentation freshness.

### タイムライン

- 2019: Public GitHub repository created.
- 2019: README license block identifies copyright for zimbatm and contributors.
- 2026: Repository metadata showed continued updates and availability through Cargo, Nix, Homebrew, and dnf-related packaging facts.

### Related projects

- The README compares mdsh with literate programming, Jupyter Notebooks, active code/Pandoc filters, and Enola.dev ExecMD.
- The project deliberately chooses in-place Markdown updates rather than a separate rendered-document pipeline.

### ソース

- <https://api.github.com/repos/zimbatm/mdsh>
- <https://github.com/zimbatm/mdsh#readme>
- <https://zimbatm.github.io/mdsh/>
- source_facts.package-manager


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

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

- Nix - mdsh: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/mdsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - mdsh - 0.7.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: mdsh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Markdown shell pre-processor | https://crates.io/crates/mdsh


## Combined YAML source

View the package source record on GitHub. [combined/mdsh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mdsh.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
