LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fish

friendly interactive shell

TLDR

Start fish shell
$ fish
copy
Execute command
$ fish -c "[echo hello]"
copy
Run script
$ fish [script.fish]
copy
Start without config
$ fish --no-config
copy
Check syntax
$ fish -n [script.fish]
copy

SYNOPSIS

fish [options] [file] [arguments...]

DESCRIPTION

fish (Friendly Interactive Shell) is a smart, user-friendly shell with syntax highlighting, autosuggestions, and tab completions that work out of the box.Unlike bash or zsh, fish doesn't require extensive configuration to be useful. It features web-based configuration, informative error messages, and discoverable features.fish uses a cleaner scripting syntax that differs from POSIX shells, prioritizing usability over compatibility.

PARAMETERS

FILE

Script file to execute.
-c COMMAND
Execute command and exit.
-n, --no-execute
Syntax check only.
--no-config
Skip configuration files.
-i, --interactive
Force interactive mode.
-l, --login
Act as login shell.
-p, --profile FILE
Output profiling data.
--help
Display help information.

CONFIGURATION

~/.config/fish/config.fish

User configuration file loaded on shell startup.
~/.config/fish/fish_variables
Universal variables stored persistently across sessions.
**~/.config/fish/functions/*.fish**
User-defined functions, one per file.

INSTALL

sudo apt install fish
copy
sudo dnf install fish
copy
sudo pacman -S fish
copy
sudo apk add fish
copy
sudo zypper install fish
copy
brew install fish
copy
nix profile install nixpkgs#fish
copy

CAVEATS

Not POSIX-compatible. Scripts need fish-specific syntax. Some commands differ from bash/zsh.

HISTORY

fish was created by Axel Liljencrantz in 2005 to address shell usability issues. It prioritizes interactive use and discoverability, embracing incompatibility with POSIX to improve user experience.

SEE ALSO

bash(1), zsh(1), fisher(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid