mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
docs: More about envvars
This commit is contained in:
parent
2da1a4ae77
commit
51bce422fd
3 changed files with 12 additions and 2 deletions
|
@ -21,7 +21,7 @@ The **-h** or **--help** option displays help about using this command.
|
||||||
|
|
||||||
If the :envvar:`BROWSER` environment variable is set, it will be used to display the documentation.
|
If the :envvar:`BROWSER` environment variable is set, it will be used to display the documentation.
|
||||||
Otherwise, fish will search for a suitable browser.
|
Otherwise, fish will search for a suitable browser.
|
||||||
To use a different browser than as described above, one can set the :envvar:`fish_help_browser` variable.
|
To use a different browser than as described above, you can set ``$fish_help_browser``
|
||||||
This variable may be set as a list, where the first element is the browser command and the rest are browser options.
|
This variable may be set as a list, where the first element is the browser command and the rest are browser options.
|
||||||
|
|
||||||
Example
|
Example
|
||||||
|
|
|
@ -27,7 +27,7 @@ Note that command substitutions in a case statement will be evaluated even if it
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
If the variable :envvar:`animal` contains the name of an animal, the following code would attempt to classify it:
|
If the variable ``$animal`` contains the name of an animal, the following code would attempt to classify it:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|
|
@ -1323,6 +1323,16 @@ You can change the settings of fish by changing the values of certain variables.
|
||||||
|
|
||||||
A number of variable starting with the prefixes ``fish_color`` and ``fish_pager_color``. See :ref:`Variables for changing highlighting colors <variables-color>` for more information.
|
A number of variable starting with the prefixes ``fish_color`` and ``fish_pager_color``. See :ref:`Variables for changing highlighting colors <variables-color>` for more information.
|
||||||
|
|
||||||
|
.. envvar:: fish_term24bit
|
||||||
|
|
||||||
|
If this is set to 1, fish will assume the terminal understands 24-bit RGB color sequences, and won't translate them to the 256 or 16 color palette.
|
||||||
|
This is often detected automatically.
|
||||||
|
|
||||||
|
.. envvar:: fish_term256
|
||||||
|
|
||||||
|
If this is set to 1, fish will assume the terminal understands 256 colors, and won't translate matching colors down to the 16 color palette.
|
||||||
|
This is usually autodetected.
|
||||||
|
|
||||||
.. envvar:: fish_ambiguous_width
|
.. envvar:: fish_ambiguous_width
|
||||||
|
|
||||||
controls the computed width of ambiguous-width characters. This should be set to 1 if your terminal renders these characters as single-width (typical), or 2 if double-width.
|
controls the computed width of ambiguous-width characters. This should be set to 1 if your terminal renders these characters as single-width (typical), or 2 if double-width.
|
||||||
|
|
Loading…
Reference in a new issue