Hilbish/docs/hooks/command.md

22 lines
640 B
Markdown
Raw Normal View History

---
title: Command
description:
layout: doc
menu:
docs:
parent: "Hooks"
---
- `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.
2021-11-22 21:36:32 +00:00
`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.
2021-11-22 21:36:32 +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.