2019-03-31 17:05:09 +08:00
.. _cmd-fish:
2018-12-17 09:39:33 +08:00
fish - the friendly interactive shell
2019-01-03 12:10:47 +08:00
=====================================
2018-12-17 09:39:33 +08:00
2018-12-18 09:58:24 +08:00
Synopsis
--------
2018-12-17 05:08:41 +08:00
2019-09-17 17:59:04 +08:00
::
2018-12-18 09:58:24 +08:00
2019-09-17 17:59:04 +08:00
fish [OPTIONS] [-c command] [FILE [ARGUMENTS...]]
2018-12-17 05:08:41 +08:00
2018-12-19 10:44:30 +08:00
Description
2019-01-03 12:10:47 +08:00
-----------
2018-12-17 05:08:41 +08:00
2019-03-31 17:32:40 +08:00
`` fish `` is a command-line shell written mainly with interactive use in mind. The :ref: `full manual <intro>` is available in HTML by using the :ref: `help <cmd-help>` command from inside fish.
2018-12-17 05:08:41 +08:00
The following options are available:
2018-12-20 04:02:45 +08:00
- `` -c `` or `` --command=COMMANDS `` evaluate the specified commands instead of reading from the commandline
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -C `` or `` --init-command=COMMANDS `` evaluate the specified commands after reading the configuration, before running the command specified by `` -c `` or reading interactive input
2018-12-17 05:08:41 +08:00
2019-06-18 00:07:43 +08:00
- `` -d `` or `` --debug=CATEGORY_GLOB `` enables debug output and specifies a glob for matching debug categories (like `` fish -d `` ). Defaults to empty.
2018-12-17 05:08:41 +08:00
2019-04-20 15:15:51 +08:00
- `` -o `` or `` --debug-output=path `` Specify a file path to receive the debug output. The default is stderr.
2018-12-20 04:02:45 +08:00
- `` -i `` or `` --interactive `` specify that fish is to run in interactive mode
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -l `` or `` --login `` specify that fish is to run as a login shell
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -n `` or `` --no-execute `` do not execute any commands, only perform syntax checking
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -p `` or `` --profile=PROFILE_FILE `` when fish exits, output timing information on all executed commands to the specified file
2018-12-17 05:08:41 +08:00
2019-06-30 19:54:03 +08:00
- `` -P `` or `` --private `` enables :ref: `private mode <private-mode>` , so fish will not access old or store new history.
2019-04-11 04:58:29 +08:00
- `` --print-rusage-self `` when fish exits, output stats from getrusage
2019-04-20 15:15:51 +08:00
- `` --print-debug-categories `` outputs the list of debug categories, and then exits.
2018-12-20 04:02:45 +08:00
- `` -v `` or `` --version `` display version and exit
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -D `` or `` --debug-stack-frames=DEBUG_LEVEL `` specify 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.
2018-12-17 05:08:41 +08:00
2018-12-20 04:02:45 +08:00
- `` -f `` or `` --features=FEATURES `` enables one or more feature flags (separated by a comma). These are how fish stages changes that might break scripts.
2018-12-17 05:08:41 +08:00
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.