fish

Document Fish shell syntax, expansion, functions, and command substitution.

1.4k|36|Updated Mar 17, 2020
One-click install
npx skills add https://github.com/carapace-sh/carapace --skill fish-carapace-sh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fish
Source: https://github.com/carapace-sh/carapace/tree/main/skills/fish
Command: npx skills add https://github.com/carapace-sh/carapace --skill fish-carapace-sh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Unifies and clarifies the Fish shell's syntax, language features, and interactive tooling to help users write robust scripts and operate the shell with confidence.

Core Features & Use Cases

  • In-depth reference to quoting, expansion, variables, lists, functions, and command substitution, plus the shell's completion engine, autosuggestions, pager, editor modes, and startup/config flow.
  • Practical guidance for developers and power users on implementing, understanding, and debugging Fish behavior across common tasks such as writing functions, building completions, and configuring the shell.
  • Use cases include learning Fish syntax, creating reliable scripts, designing effective completions, and optimizing interactive workflows with the Fish toolchain.

Quick Start

Open the Fish In-Depth Reference and start with the Core Features & Use Cases section to begin exploring.

Frequently Asked Questions about fish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure the fish shell startup process and environment variables?▼

Fish shell quoting and variable expansion rules differ from POSIX shells, using explicit syntax for lists and command substitution. This reference details how quoting, expansion, and variable scopes work to help you write robust scripts.

How do I write functions and command substitutions in fish shell?▼

Writing fish shell functions requires understanding its unique command substitution syntax and list handling. This reference provides example-rich guidance on defining functions, managing variables, and executing command substitutions correctly.

How does the fish shell completion system and autosuggestions engine work?▼

The fish shell completion system and autosuggestions engine provide real-time command previews as you type. This reference explains how to build custom completions and configure the pager and editor modes for interactive workflows.

What is the best way to debug fish shell scripts and interactive behavior?▼

Debugging fish shell scripts requires understanding its language features, expansion rules, and interactive tooling. This reference clarifies syntax, command substitution, and configuration flow to help you identify and resolve behavior issues.

Can I customize the fish shell pager and editor modes for my workflow?▼

You can customize the fish shell pager and editor modes to optimize interactive workflows. This reference details configuration options for the completion system, autosuggestions, and editor features to tailor the environment to your needs.