更新于
Fish Shell Setup Guide
Fish (Friendly Interactive Shell) focuses on out-of-the-box usability. This guide covers install, default shell setup, and a dev-friendly environment.
Install
- macOS:
brew install fish - Ubuntu/Debian:
sudo apt update && sudo apt install fish
Set as default: chsh -s $(which fish) (path may be /usr/bin/fish or /opt/homebrew/bin/fish).
Config
Edit ~/.config/fish/config.fish. Add paths, aliases, and plugins (e.g. Fisher) as needed. For Python/Node/Bun/Go/Rust integration and full snippets, see the Chinese version of this guide.