done
done copied to clipboard
Use `fish_postexec` instead of `fish_prompt`
Using the fish_postexec
event removes the reliance on history
as the command that just finished executing is passed in as the first argument to the function. The fish_prompt
event is also fired when we don't need to run.