franciscolourenco / done

A fish-shell package to automatically receive notifications when long processes finish.
MIT License
766 stars 70 forks source link

Fix transient notification check #116

Closed ypconstante closed 2 years ago

ypconstante commented 2 years ago

Previous implementation was throwing the following error:

fish: Unknown command: 1
~/.config/fish/conf.d/done.fish (line 261):
                if "$__done_notification_transient" != 0
                   ^
in function '__done_ended'
in event handler: handler for generic event “fish_prompt”

Changed variable verification to use test, like the remaining verifications.