mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 18:55:06 +08:00
docs: Link fish_greeting function from FAQ
And explain the variable more in fish_greeting. Closes #9056
This commit is contained in:
parent
0709b796bb
commit
603a8e31e3
@ -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:
|
||||
|
||||
::
|
||||
|
@ -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?
|
||||
------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user