When defining a new function in fish, it's possible to make it into an event handler - a function that is automatically run when a specific event takes place.
*Note: event handler is a function, but a function isn't an event handler.
Events that can trigger a handler currently are:
- A signal is delivered
- A job exits
- The value of a variable is updated