FUNCSAVE(1)

NAME
funcsave - save the definition of a function to the user's autoload directory

SYNOPSIS

funcsave FUNCTION_NAME

DESCRIPTION

funcsave saves the current definition of a function to a file in the fish configuration directory. This function will be automatically loaded by current and future fish sessions. This can be useful if you have interactively created a new function and wish to save it for later use.

Note that because fish loads functions on-demand, saved functions will not function as event handlers until they are run or sourced otherwise. To activate an event handler for every new shell, add the function to your shell initialization file instead of using funcsave.

COPYRIGHT
2019, fish-shell developers