Fish Shell Cheatsheet

Modern Fish shell syntax and configuration for user-friendly scripting

Shell6 commandsbeginner

Overview

Fish is a smart and user-friendly command shell with syntax highlighting, autosuggestions, and web-based configuration.

Why It Matters

Fish shell prioritizes user-friendliness with smart completions and a clean syntax.

Essential Commands

set -Ux EDITOR nvim

Set universal environment variable

alias gs="git status"

Create command alias in Fish

functions -c ls ll

Copy function definition to new function

fish_config

Open Fish web-based configuration UI

set -e VAR_NAME

Erase environment variable

source ~/.config/fish/config.fish

Reload Fish config file

Quick Start

Start with the enjoy automatic command suggestions

Key Concepts

Enjoy automatic command suggestions

Use intuitive scripting syntax

Configure via web-based interface

Pro Tips

  • Combine multiple commands for powerful workflows
  • Use aliases to speed up your command entry
  • Create scripts to automate repetitive tasks

Common Pitfalls to Avoid

  • Forgetting to check the documentation for edge cases
  • Running commands without understanding their full impact
  • Not testing changes in a safe environment first

Related Resources

6 items

Quick Reference