I am looking for a way to send notification from hyper after a task is finished, for example after npm install finishes or some operation say, copying a directory or running an update on system is finished. How can I extend hyper to achieve this? Thanks!
I think this is better handled by your shell, since it's closer to where the tasks are running. Having that code in hyper would just slow things down. But it could definitely be done as a plugin if you wanted 馃槂 Here's a list of awesome hyper plugins, there might already be one out there.
If you're using fish shell and fisherman it's as easy as installing fisherman/done:
fisherman install done
I think there's similar plugins for zsh and bash? 馃檶
Edit: looks like you're on zsh, here's a two I found:
https://github.com/marzocchi/zsh-notify
https://github.com/t413/zsh-background-notify
Thanks @albinekb, I took a look and found https://github.com/t413/zsh-background-notify to be just what I needed. Was a simple matter of adding bgnotify to my .zshrc in plugins. Works like a charm.
Appreciate the help, closing the issue :smile_cat:
Glad I could help 鈽猴笍
Most helpful comment
Thanks @albinekb, I took a look and found https://github.com/t413/zsh-background-notify to be just what I needed. Was a simple matter of adding
bgnotifyto my .zshrc inplugins. Works like a charm.Appreciate the help, closing the issue :smile_cat: