fish man page
fish -- the friendly interactive shell
fish [OPTIONS] [-c command] [FILE [ARGUMENTS...]]
fish is a command-line shell written mainly with interactive use in mind. The full manual is available
in HTML by using the
help command from inside fish.
The following options are available:
--command=COMMANDSevaluate the specified commands instead of reading from the commandline
--init-command=COMMANDSevaluate the specified commands after reading the configuration, before running the command specified by
-cor reading interactive input
--debug-level=DEBUG_LEVELspecify the verbosity level of fish. A higher number means higher verbosity. The default level is 1.
--interactivespecify that fish is to run in interactive mode
--loginspecify that fish is to run as a login shell
--no-executedo not execute any commands, only perform syntax checking
--profile=PROFILE_FILEwhen fish exits, output timing information on all executed commands to the specified file
--versiondisplay version and exit
--debug-stack-frames=DEBUG_LEVELspecify how many stack frames to display when debug messages are written. The default is zero. A value of 3 or 4 is usually sufficient to gain insight into how a given debug call was reached but you can specify a value up to 128.
The fish exit status is generally the exit status of the last foreground command. If fish is exiting because of a parse error, the exit status is 127.
- Start interactive shell:
- Execute a command:
fish -c "command"
- Run commands from a file:
- Check a file for syntax errors:
fish --no-execute file.fish
- Display version information and exit: