From d63a10d699f26fe57fb3b78a4cb886e44e96cbab Mon Sep 17 00:00:00 2001 From: sammyette Date: Mon, 10 Jul 2023 19:02:06 -0400 Subject: [PATCH] docs: documnt command.preexec hook --- docs/hooks/command.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/hooks/command.md b/docs/hooks/command.md index cd1ae3c..2d29f4b 100644 --- a/docs/hooks/command.md +++ b/docs/hooks/command.md @@ -1,3 +1,8 @@ ++ `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). + + `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.