jichu4n/bash-command-timer

Improve compatibility with other scripts

Closed this issue · 1 comments

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.

See Pull Request #13