undistract-me is incompatible with any other script that relies on bash-preexec, for instance bash-timer.
That is because undistract-me uses variables precmd and preexec to pass its callback functions to bash-preexec. If any other script does the same thing, then whichever is sourced last overwrites these variables and the callbacks of the other scripts are discarded.
This is solved updating bash-preexec, I will send a PR shortly. Could you consider merging it in ? This is really useful for people using the script.
undistract-me
is incompatible with any other script that relies onbash-preexec
, for instance bash-timer.That is because
undistract-me
uses variablesprecmd
andpreexec
to pass its callback functions tobash-preexec
. If any other script does the same thing, then whichever is sourced last overwrites these variables and the callbacks of the other scripts are discarded.This is solved updating
bash-preexec
, I will send a PR shortly. Could you consider merging it in ? This is really useful for people using the script.Best