Closed wesalvaro closed 9 months ago
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.
fish_postexec
history
fish_prompt
fish_postexec was introduced in fish 2.2.0 (released July 12, 2015), so safe to use. Thank you for the PR!
Using the
fish_postexec
event removes the reliance onhistory
as the command that just finished executing is passed in as the first argument to the function. Thefish_prompt
event is also fired when we don't need to run.