2019-03-31 17:05:09 +08:00
|
|
|
.. _cmd-help:
|
|
|
|
|
2018-12-17 09:39:33 +08:00
|
|
|
help - display fish documentation
|
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
|
|
|
|
2021-12-18 07:38:06 +08:00
|
|
|
``help`` [*SECTION*]
|
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
|
|
|
|
2018-12-20 04:02:45 +08:00
|
|
|
``help`` displays the fish help documentation.
|
2018-12-17 05:08:41 +08:00
|
|
|
|
2021-12-18 07:38:06 +08:00
|
|
|
If a *SECTION* is specified, the help for that command is shown.
|
2018-12-17 05:08:41 +08:00
|
|
|
|
2021-12-18 07:38:06 +08:00
|
|
|
If the BROWSER environment variable is set, it will be used to display the documentation.
|
|
|
|
Otherwise, fish will search for a suitable browser.
|
2018-12-17 05:08:41 +08:00
|
|
|
|
2021-12-18 07:38:06 +08:00
|
|
|
To use a different browser than as described above, one can set the :envvar:`fish_help_browser` variable.
|
|
|
|
This variable may be set as a list, where the first element is the browser command and the rest are browser options.
|
2018-12-17 05:08:41 +08:00
|
|
|
|
2018-12-19 10:44:30 +08:00
|
|
|
Example
|
2019-01-03 12:10:47 +08:00
|
|
|
-------
|
2018-12-17 05:08:41 +08:00
|
|
|
|
2020-03-21 22:31:25 +08:00
|
|
|
``help fg`` shows the documentation for the :ref:`fg <cmd-fg>` builtin.
|
2021-12-18 07:38:06 +08:00
|
|
|
|
|
|
|
Notes
|
|
|
|
-----
|
|
|
|
|
|
|
|
Most builtin commands display their help in the terminal when given the **--help** option.
|