Hey fishers,
I was putting together a config.fish and wanted to include some functionality that could benefit from overriding the job-finished hook/event.
In the documentation on fishshell.com there is a sample function in the function section showing some function notify .... It defines a function function _notify_job$job --on-job-exit $job --inherit-variable job ... but I can't find any documentation regarding any job-exit hooks or events.
When I copied the function into my own config.fish file I did not notice any of the behaviors I might have expected to happen, notably an \a beep being sent when a job was completed. My process looked like this:
> sleep 15 &
> sleep 15 &
> sleep 15 &
...all executed consecutively (within 1 second). Of course, after 15 seconds, I started receiving notifications in my prompt that jobs were being finished (Job X, "sleep 15 &" has ended).
I'd like to tap into (override) the print statements that get issued when these jobs are finished to write something that fits my theme a little better. Am I missing documentation that explains how to do this? From what I've seen the only builtin events I can hook are pre-exec, post-exec, and the prompt.
Thanks for any input!