diff --git a/home/fish/functions/exit.fish b/home/fish/functions/exit.fish new file mode 100644 index 0000000..2ca78d7 --- /dev/null +++ b/home/fish/functions/exit.fish @@ -0,0 +1,5 @@ +function exit \ + --description "Disown all jobs started from this shell to avoid killing them on exit" \ + --on-event fish_exit + jobs -q; and disown (jobs -p) +end