diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index e0eacb1ec..026b15bb5 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -1292,7 +1292,7 @@ end If you want to run a set of commands when `fish` exits, use an event handler 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