I was trying to customize the fish_prompt, where I want to call previous fish_prompt. How do I do this:
function fish_prompt
echo -n "(something)"
fish_prompt
end
I tried like this:
alias fish_prompt2 fish_prompt
function fish_prompt
echo -n "(something)"
fish_prompt2
end
But aliasing doesn't help. It creates just a alias and cause recursion. Is there a way to assign the function to a different name (here fish_prompt to fish_prompt2.
From
man functions:So you should be able to write:
and then provide fish_prompt in the way you wrote.