Improve compatibility with other scripts
Closed this issue · 1 comments
qbouvet commented
One may want to use bash-command-timer
in conjunction with scripts such as undistract-me
. But as mentioned in the README here, bash-command-timer
is incompatible with any script that uses $ COMMAND_PROMPT
or the DEBUG
trap, because bash-command-timer
manipulates these directly.
Compatibility with similar scripts can be improved, by using bash-preexec
instead of manipulating $ COMMAND_PROMPT
and debug DEBUG
directly.