From 603a8e31e30c5a1420ab6c79d3af29bb611497b3 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Mon, 18 Jul 2022 20:50:44 +0200 Subject: [PATCH] docs: Link fish_greeting function from FAQ And explain the variable more in fish_greeting. Closes #9056 --- doc_src/cmds/fish_greeting.rst | 6 ++++++ doc_src/faq.rst | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc_src/cmds/fish_greeting.rst b/doc_src/cmds/fish_greeting.rst index c5c06b903..eff2b98e4 100644 --- a/doc_src/cmds/fish_greeting.rst +++ b/doc_src/cmds/fish_greeting.rst @@ -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 `. + A simple greeting: :: diff --git a/doc_src/faq.rst b/doc_src/faq.rst index 762895f99..eba01abba 100644 --- a/doc_src/faq.rst +++ b/doc_src/faq.rst @@ -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 ` 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 `. How do I run a command from history? ------------------------------------