jml / undistract-me

Notifies you when long-running terminal commands complete
Other
539 stars 48 forks source link

"undistract-me.sh" tests for "$last_command_started_cache" but it is no longer defined #44

Open neckcen opened 7 years ago

neckcen commented 7 years ago

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'.