You can do it as follows:
# Turn on debug $ shopt -s extdebug
To edit a function, open the file containing the function definition (which you found above). Edit the function and save the file. Then enter it into your shell, for example:
$ . /path/to/function_file
source share