Make trap sort of work on OS X
https://github.com/fish-shell/fish-shell/issues/607