Conditional terminal macros?

example.

I update my package json:

  • stop dev server
  • npm i
  • start dev server

(i can just use nodemon, yes, but I figured this ai thing could do it yk.)

Cool idea, having an AI almost “supervise” the terminal, and run commands when you change things!