home: fish: override exit function
This commit is contained in:
parent
fe21cf537f
commit
fa41b61e92
1 changed files with 5 additions and 0 deletions
5
home/fish/functions/exit.fish
Normal file
5
home/fish/functions/exit.fish
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue