MichaelAquilina / zsh-auto-notify

⏰ ZSH plugin that automatically sends out a notification when a long running task has completed.
GNU General Public License v3.0
407 stars 42 forks source link

Clear AUTO_COMMAND in the precmd hook #9

Closed vierbergenlars closed 5 years ago

vierbergenlars commented 5 years ago

precmd is always triggered before a new prompt is returned, but preexec is only called before an actual command is executed. This means that using builtins (or using ^C or enter) on an empty commandline will result in a new notification for the previous command that has already completed before.

vierbergenlars commented 5 years ago

This might actually fix #8 too.

MichaelAquilina commented 5 years ago

Thanks for the fix @vierbergenlars !