docs: Add fish_posterror

Also remove the "event will be emitted even if the command is invalid"
because it's not the case anymore, AFAICT.

See #6880.
This commit is contained in:
Fabian Homborg 2020-04-25 09:25:03 +02:00
parent a93ee3a4e9
commit 1f459622cb

View file

@ -54,12 +54,10 @@ By using one of the event handler switches, a function can be made to run automa
- ``fish_preexec``, which is emitted right before executing an interactive command. The commandline is passed as the first parameter. - ``fish_preexec``, which is emitted right before executing an interactive command. The commandline is passed as the first parameter.
Note: This event will be emitted even if the command is invalid. The commandline parameter includes the entire commandline verbatim, and may potentially include newlines. - ``fish_posterror``, which is emitted right after executing a command with syntax errors. The commandline is passed as the first parameter.
- ``fish_postexec``, which is emitted right after executing an interactive command. The commandline is passed as the first parameter. - ``fish_postexec``, which is emitted right after executing an interactive command. The commandline is passed as the first parameter.
Note: This event will be emitted even if the command is invalid. The commandline parameter includes the entire commandline verbatim, and may potentially include newlines.
- ``fish_exit`` is emitted right before fish exits. - ``fish_exit`` is emitted right before fish exits.
- ``fish_cancel``, which is emitted when a commandline is cleared (used for terminal-shell integration). - ``fish_cancel``, which is emitted when a commandline is cleared (used for terminal-shell integration).