Hilbish/docs/hooks/command.md

13 lines
557 B
Markdown
Raw Permalink Normal View History

+ `command.preexec` -> input, cmdStr > Thrown before a command
is executed. The `input` is the user written command, while `cmdStr`
is what will be executed (`input` will have aliases while `cmdStr`
will have alias resolved input).
2021-11-22 21:36:32 +00:00
+ `command.exit` -> code, cmdStr > Thrown when a command exits.
`code` is the exit code of the command, and `cmdStr` is the command that was run.
+ `command.not-found` -> cmdStr > Thrown when a command is not found.
2022-12-28 23:28:16 +00:00
+ `command.not-executable` -> cmdStr > Thrown when Hilbish attempts to run a file
that is not executable.