Factor out fish_prompt into functions.