mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
parent
357eb3cd32
commit
da8fe7e845
2 changed files with 3 additions and 1 deletions
|
@ -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>`.
|
||||
|
|
|
@ -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>`.
|
||||
|
|
Loading…
Reference in a new issue