For example:
actions:
definitions:
- id: start
run: <command>
trigger:
- on: [shell-entry, shell-exit]