preexec
There are 4 repositories under preexec topic.
rcaloras/bash-preexec
⚡ preexec and precmd functions for Bash just like Zsh.
d630/bpx
Hook functions for GNU bash
glumia/bash-tiasft
There is a shortcut for that! Get help getting into the habit of using new aliases.
spl/bash-prompt-hooks
Bash prompt hooks for before and after a command