https://github.com/rcaloras/bash-preexec