The undistract-me.sh script checks for $last_command_started_cache to ensure undistract me is not already sourced. However the variable $last_command_started_cache was removed in 8166f32c08d624353218a450733a0d23a38f1e3d which makes the check useless.
An alternative test would be "$(type -t notify_when_long_running_commands_finish_install)" = 'function'.
The
undistract-me.sh
script checks for$last_command_started_cache
to ensure undistract me is not already sourced. However the variable$last_command_started_cache
was removed in 8166f32c08d624353218a450733a0d23a38f1e3d which makes the check useless.An alternative test would be
"$(type -t notify_when_long_running_commands_finish_install)" = 'function'
.