macOS
brew install fishlocal Homebrew formula metadata
sudo port install fishMacPorts ports tree · shells/fish/Portfile · 来源: api.github.com
安装
brew install fishlocal Homebrew formula metadata
sudo port install fishMacPorts ports tree · shells/fish/Portfile · 来源: api.github.com
sudo apk add fishAlpine Linux edge package indexes · fish · 来源: dl-cdn.alpinelinux.org
sudo dnf install fishFedora Rawhide package metadata · fish · 来源: dl.fedoraproject.org
nix profile install nixpkgs#fishnixpkgs package indexes · pkgs/by-name/fi/fish/package.nix · 来源: api.github.com
sudo pacman -S fishArch Linux sync databases · fish · 来源: geo.mirror.pkgbuild.com
sudo zypper install fishopenSUSE Tumbleweed package metadata · fish · 来源: download.opensuse.org
概览
User-friendly command-line shell for UNIX-like operating systems
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/fish/config.fish~/.config/fish/config.fish可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
fish | cli | 全局可执行文件 | |
fish_indent | cli | 全局可执行文件 | |
fish_key_reader | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/fish-shell/fish-shell
安装元数据
| 软件包键 | brew:fish |
|---|---|
| 版本 | 4.8.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/fish |
| 主页 | https://fishshell.com |
| 仓库 | https://github.com/fish-shell/fish-shell |
| 上游文档 | https://fishshell.com/docs/current |
| 许可证 | GPL-2.0-only |
| 源码归档 | https://github.com/fish-shell/fish-shell/releases/download/4.8.0/fish-4.8.0.tar.xz |
| 最后更新 | 2026-07-05T06:35:42Z |
| Pulse | updated |
| 依赖 | pcre2 |
| 构建依赖 | cmake, rust, sphinx-doc |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | fish |
| Aliases |
|
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
fish 4.0.2-1
friendly interactive shell
sudo apt install fishfish-common 4.0.2-1
friendly interactive shell (architecture-independent files)
sudo apt install fish-commonfish
nix profile install nixpkgs#fishfish 3.7.0-1
friendly interactive shell
sudo apt install fishfish-common 3.7.0-1
friendly interactive shell (architecture-independent files)
sudo apt install fish-commonfish 4.6.0-r1
Modern interactive commandline shell
sudo apk add fishfish-dev 4.6.0-r1
Modern interactive commandline shell (development files)
sudo apk add fish-devfish-doc 4.6.0-r1
Modern interactive commandline shell (documentation)
sudo apk add fish-docfish-tools 4.6.0-r1
Modern interactive commandline shell (tools)
sudo apk add fish-toolsfish 4.6.0-1.fc45
Friendly interactive shell
sudo dnf install fishfish 4.7.1-1
Smart and user friendly shell intended mostly for interactive use
sudo pacman -S fishfish 4.7.1-1.1
The "friendly interactive shell"
sudo zypper install fishfish-devel 4.7.1-1.1
Devel files for the fish shell
sudo zypper install fish-develfish
sudo port install fish来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.