Fish is a smart and user-friendly command-line shell for Linux, macOS, and the rest of the family. With features like autosuggestions, syntax highlighting, and web-based configuration, it works out of the box.
📑 Table of Contents
Key Features
- Autosuggestions: Suggests commands as you type
- Syntax Highlighting: Real-time command validation
- Web Config: Browser-based configuration
- Tab Completion: Smart, context-aware completion
- Scripting: Clean, consistent scripting syntax
Installation
Install Fish on Ubuntu:
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
# Set as default shell
chsh -s /usr/bin/fish
Usage Examples
Fish configuration:
# Open web config
fish_config
# Set environment variable
set -Ux EDITOR vim
# Define function
function mkcd
mkdir -p $argv[1] && cd $argv[1]
end
# Save function
funcsave mkcd
Benefits
Fish provides a modern shell experience without configuration. Its sensible defaults and discoverable features make it ideal for users who want productivity without complexity.
Was this article helpful?