docs: Link fish_greeting function from FAQ

And explain the variable more in fish_greeting.

Closes #9056
This commit is contained in:
Fabian Boehm 2022-07-18 20:50:44 +02:00
parent 0709b796bb
commit 603a8e31e3
2 changed files with 8 additions and 2 deletions

View File

@ -29,6 +29,12 @@ While you could also just put ``echo`` calls into config.fish, fish_greeting tak
Example
-------
To just empty the text, with the default greeting function::
set -U fish_greeting
or ``set -g fish_greeting`` in :ref:`config.fish <configuration>`.
A simple greeting:
::

View File

@ -142,7 +142,7 @@ You can also use ``fish_config`` on the commandline, like::
How do I change the greeting message?
-------------------------------------
Change the value of the variable ``fish_greeting`` or create a ``fish_greeting`` function. For example, to remove the greeting use::
Change the value of the variable ``fish_greeting`` or create a :ref:`fish_greeting <cmd-fish_greeting>` function. For example, to remove the greeting use::
set -U fish_greeting
@ -150,7 +150,7 @@ Or if you prefer not to use a universal variable, use::
set -g fish_greeting
in config.fish.
in :ref:`config.fish <configuration>`.
How do I run a command from history?
------------------------------------