-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Fish Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to Fish shell on Linux, covering Arch Linux, CachyOS, and other distributions including installation, configuration, and Fish-specific features.
Arch/CachyOS:
# Install Fish
sudo pacman -S fish
# Install fish-friendly-command
sudo pacman -S fzfDebian/Ubuntu:
sudo apt install fishFedora:
sudo dnf install fishChange shell:
# Change to Fish
chsh -s /usr/bin/fish
# Or just launch
fishEdit config:
# Create config
vim ~/.config/fish/config.fishCommon settings:
# Set PATH
set -gx PATH $PATH ~/bin
# Aliases
alias ll 'ls -alF'
alias la 'ls -A'
alias l 'ls -CF'
# Prompt
function fish_prompt
echo (pwd) '> '
endFish provides:
- Automatic: Built-in completion
- Suggestions: Command suggestions
- Syntax highlighting: Real-time highlighting
History features:
- Search: Ctrl+R
- Autocomplete: Tab
- Shared history: Across sessions
Define function:
# In config.fish
function greet
echo "Hello, $argv[1]!"
endCall function:
# Use function
greet "World"Check installation:
# Check Fish
which fish
fish --version
# Install if missing
sudo pacman -S fishThis guide covered Fish installation, configuration, and features for Arch Linux, CachyOS, and other distributions.
- Shell Configuration - Shell setup
- zsh Guide - zsh shell
- Fish: https://fishshell.com/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.