有没有办法使用 fish shell 环境来列出当前脚本中定义的函数?

Is there a way using the fish shell environment to list functions defined in the current script?

我正在寻找一种介于 set -lfunctions 之间的组合,例如 functions -l

这将帮助我在未来更有效地更新我的脚本,但不需要记住手动编辑某些区域来告诉脚本的那一部分函数被识别,而另一部分告诉用户定义了哪些。

目前没有办法做到这一点。 issue #3295 的决议可能会提供必要的机制来执行您想要的操作。