docs: Use fish_exit event instead of waiting for a process

This commit is contained in:
Fabian Homborg
2018-11-25 19:13:18 +01:00
parent 8ab6078001
commit 40799d9e95

View File

@@ -1292,7 +1292,7 @@ end
If you want to run a set of commands when `fish` exits, use an <a href='#event'>event handler</a> that is triggered by the exit of the shell:
\fish
function on_exit --on-process $fish_pid
function on_exit --on-event fish_exit
echo fish is now exiting
end
\endfish