Thank you for the discussion yesterday. I found that at least zsh has hooks, specifically preexec that will run before the command is executed and will (if history is enabled I believe) get the command as an input.
This isn't really an issue so feel free to close it as soon as you want.
Thanks a lot @alneberg , appreciate the tip a lot! This is a great pointer, and I'll have a look and see if there are some general mechanism that would work in many different shells.
Hello!
Thank you for the discussion yesterday. I found that at least
zsh
has hooks, specificallypreexec
that will run before the command is executed and will (if history is enabled I believe) get the command as an input.This isn't really an issue so feel free to close it as soon as you want.