Marcin, have you considered an event handler[1] ? I have not tried it myself, but came across this subject when I searched for an equivalent of BASH "set -e" and/or "trap".
[1] https://fishshell.com/docs/current/index.html#event -Ralph _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users