# fish を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

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

## インストール

```sh
sudo av install brew:fish
```

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

### macOS

- Homebrew (100%):

```sh
brew install fish
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fish
```

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

### Linux

- apk (92%):

```sh
sudo apk add fish
```

  証拠: Alpine Linux edge package indexes: fish from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install fish
```

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

- dnf (92%):

```sh
sudo dnf install fish
```

  証拠: Fedora Rawhide package metadata: fish 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#fish
```

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

- pacman (92%):

```sh
sudo pacman -S fish
```

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

- zypper (92%):

```sh
sudo zypper install fish
```

  証拠: openSUSE Tumbleweed package metadata: fish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:fish
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.8.1
- **ソース概要:** User-friendly command-line shell for UNIX-like operating systems
- **ホームページ:** <https://fishshell.com>
- **リポジトリ:** <https://github.com/fish-shell/fish-shell>
- **最終更新:** 2026-07-14T03:39:06Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- fish (エイリアス)
- fish_indent (エイリアス)
- fish_key_reader (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

fish, the friendly interactive shell, is a Unix command-line shell focused on interactive ergonomics: syntax highlighting, autosuggestions, rich completions, a clean scripting language, and useful defaults without extensive configuration.

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

fish grew as an alternative to traditional POSIX-family interactive shells by choosing user experience over strict POSIX compatibility. Official documentation still calls out that fish is not the default shell and that some behavior differs from bash-like shells, which is central to its identity.

The current upstream repository was created on GitHub in 2012, while the release notes preserve a longer line of 2.x, 3.x, and 4.x releases. Version 3.0.0 arrived in December 2018, 3.7.0 in January 2024, and 4.0.0 in February 2025, after a beta in December 2024.

### 採用の歴史

fish is widely packaged across Unix-like systems. The upstream README documents Homebrew, MacPorts, official installers, Linux packages through openSUSE Build Service and Ubuntu PPAs, WSL, Cygwin, and MSYS2; the Homebrew input also records packages for apk, Debian, Fedora, Nix, pacman, Ubuntu, and zypper.

### 使われ方

Users commonly install fish alongside their system shell, run `fish` from an existing shell to try it, then make it their login shell if the syntax and interactive model fit. Configuration centers on `config.fish`, functions, completions, universal variables, and prompt/theme customization.

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

fish matters in package-manager culture because it is both an application and a shell integration target. Packages often ship fish completions, prompts and plugin managers target its function/completion layout, and distributors track changes such as fish 4.x moving more implementation and packaging work into Rust/Cargo-era build requirements.

### タイムライン

- 2012: Current GitHub repository created.
- 2018: fish 3.0.0 released.
- 2024: fish 3.7.0 released.
- 2025: fish 4.0.0 released.
- 2026: fish 4.8.0 released.

### Related projects

- Related projects include bash, zsh, POSIX sh, shell completion packages, prompt frameworks, fish-lsp, and editor integrations for fish scripts.

### ソース

- <https://fishshell.com/>
- <https://fishshell.com/docs/current/>
- <https://fishshell.com/docs/current/relnotes.html>
- <https://github.com/fish-shell/fish-shell>
- <https://github.com/fish-shell/fish-shell/releases>


## セキュリティノート

generalized runtime or code generation signal.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/fish/config.fish, ~/.config/fish/config.fish
## 他のパッケージマネージャ記録

- Debian apt - fish - 4.0.2-1: normalized package name match | Debian stable package indexes: fish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | friendly interactive shell | http://fishshell.com/
- Debian apt - fish-common - 4.0.2-1: normalized package name match | Debian stable package indexes: fish-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | friendly interactive shell (architecture-independent files) | http://fishshell.com/
- Nix - fish: normalized package name match | nixpkgs package indexes: pkgs/by-name/fi/fish/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fish - 3.7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fish from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | friendly interactive shell | http://fishshell.com/
- Ubuntu apt - fish-common - 3.7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fish-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | friendly interactive shell (architecture-independent files) | http://fishshell.com/
- apk - fish - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell | https://fishshell.com/
- apk - fish-dev - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell (development files) | https://fishshell.com/
- apk - fish-doc - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell (documentation) | https://fishshell.com/
- dnf - fish - 4.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: fish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Friendly interactive shell | https://fishshell.com
- pacman - fish - 4.8.1-1: normalized package name match | Arch Linux sync databases: fish from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Smart and user friendly shell intended mostly for interactive use | https://fishshell.com/
- zypper - fish - 4.8.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: fish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The "friendly interactive shell" | https://fishshell.com/
- zypper - fish-devel - 4.8.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: fish-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Devel files for the fish shell | https://fishshell.com/
- MacPorts - fish: normalized package name match | MacPorts ports tree: shells/fish/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/fish.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fish.yml)


## ソース

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