2023-11-12 02:28:18 +00:00
|
|
|
---
|
|
|
|
title: Command
|
|
|
|
description:
|
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "Hooks"
|
|
|
|
---
|
|
|
|
|
|
|
|
- `command.preexec` -> input, cmdStr > Thrown before a command
|
2023-07-10 23:03:30 +00:00
|
|
|
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).
|
|
|
|
|
2023-11-12 02:28:18 +00:00
|
|
|
- `command.exit` -> code, cmdStr > Thrown when a command exits.
|
2021-11-22 21:36:32 +00:00
|
|
|
`code` is the exit code of the command, and `cmdStr` is the command that was run.
|
|
|
|
|
2023-11-12 02:28:18 +00:00
|
|
|
- `command.not-found` -> cmdStr > Thrown when a command is not found.
|
2021-11-22 21:36:32 +00:00
|
|
|
|
2023-11-12 02:28:18 +00:00
|
|
|
- `command.not-executable` -> cmdStr > Thrown when Hilbish attempts to run a file
|
2022-12-28 23:28:16 +00:00
|
|
|
that is not executable.
|