docs: Point to functions/type from funced/funcsave

Fixes #10609
This commit is contained in:
Fabian Boehm 2024-08-13 17:44:03 +02:00
parent 357eb3cd32
commit da8fe7e845
2 changed files with 3 additions and 1 deletions

View file

@ -48,4 +48,4 @@ When you're done, use::
>_ funcsave fish_prompt
For more, see :doc:`funcsave <funcsave>`.
For more, see :doc:`funcsave <funcsave>`. To view a function's current definition, use :doc:`functions <functions>` or :doc:`type <type>`.

View file

@ -22,3 +22,5 @@ If you have erased a function using :doc:`functions <functions>`'s ``--erase`` o
Because fish loads functions on-demand, saved functions cannot serve as :ref:`event handlers <event>` until they are run or otherwise sourced. To activate an event handler for every new shell, add the function to the :ref:`configuration file <configuration>` instead of using ``funcsave``.
This is often used after :doc:`funced <funced>`, which opens the function in ``$EDITOR`` or ``$VISUAL`` and loads it into the current session afterwards.
To view a function's current definition, use :doc:`functions <functions>` or :doc:`type <type>`.