From fa41b61e92176b3c8a371b7f3b05a7eca242c518 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 16 Oct 2025 10:34:37 +0200 Subject: [PATCH] home: fish: override exit function --- home/fish/functions/exit.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 home/fish/functions/exit.fish 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