mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
docs: Use fish_exit event instead of waiting for a process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user