鱼壳:如何在现有提示之前添加换行符?

jac*_*bsa 3 shell fish

我对默认的鱼提示很满意,除了我想在它之前打印一个换行符,以便与上一个命令在视觉上分开。

有什么方法可以让我定义一个 newfish_prompt来打印一个换行符,然后以某种方式遵循以前称为 的函数fish_prompt

Zan*_*hey 6

将提示复制到另一个名称,然后从新的提示函数中调用它:

functions --copy fish_prompt fish_prompt_original
function fish_prompt; echo; fish_prompt_original; end
funcsave fish_prompt_original
funcsave fish_prompt
Run Code Online (Sandbox Code Playgroud)