Hyper: Send notification when a task finishes

Created on 13 Dec 2017  路  3Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate

Issue


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!

Question

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 bgnotify to my .zshrc in plugins. Works like a charm.

Appreciate the help, closing the issue :smile_cat:

All 3 comments

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 鈽猴笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stan-stripe picture stan-stripe  路  3Comments

cilice picture cilice  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments

aem picture aem  路  3Comments

dbkaplun picture dbkaplun  路  3Comments