# 使用 Homebrew, Nix 安装 fish-lsp

查看 fish-lsp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fish-lsp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fish-lsp
```

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

## 软件包事实

- **软件包键:** brew:fish-lsp
- **软件包管理器:** Homebrew
- **版本:** 1.1.4
- **来源摘要:** LSP implementation for the fish shell language
- **主页:** <https://www.fish-lsp.dev>
- **最后更新:** 2026-06-12T12:53:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fish-lsp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1.4
## 项目历史与用法

fish-lsp is a Language Server Protocol implementation for the fish shell language, bringing editor features such as completions, hover, goto definition, formatting, diagnostics, rename, symbols, semantic tokens, and inlay hints to fish scripts.

### 项目历史

The project was created in 2022 as the fish ecosystem was increasingly used for larger personal shell configurations and scripts. Its README positions the server as an editor-agnostic way to give fish users a consistent development environment rather than depending on each editor's local fish support.

### 采用历史

fish-lsp is packaged for multiple developer workflows: the official README documents npm, yarn, pnpm, Nix, Homebrew, conda, mamba, standalone GitHub release binaries, and source builds. It also links client configuration examples and nvim-lspconfig integration, which is a strong signal that adoption is editor-driven.

### 使用方式

A normal setup installs the `fish-lsp` binary, configures an editor language client to run `fish-lsp start` for fish files, and optionally installs shell completions with `fish-lsp complete > ~/.config/fish/completions/fish-lsp.fish`.

### 为什么软件包爱好者会关心

For package nerds, fish-lsp is notable because it turns fish from an interactive shell with nice built-ins into a language that participates in the modern LSP/editor tooling stack. It also has unusually broad distribution paths for a young shell-specific tool.

### 时间线

- 2022: GitHub repository created.
- 2025: 1.0.x releases established regular packaged releases.
- 2026: 1.1.4 published, with releases continuing through GitHub and package managers.

### Related projects

- Related projects include fish shell, the Language Server Protocol, editor LSP clients, nvim-lspconfig, and fish completion tooling.

### 来源

- <https://github.com/ndonfris/fish-lsp>
- <https://github.com/ndonfris/fish-lsp/releases>
- <https://www.fish-lsp.dev/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 其他软件包管理器记录

- Nix - fish-lsp: normalized package name match | nixpkgs package indexes: pkgs/by-name/fi/fish-lsp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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