Skip to content

Receive a OS notification when slow commands have finished running

Notifications You must be signed in to change notification settings

franjohn21/notify-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EDIT: ntfy is a much more robust tool that covers the same functionality.

notify-command

Tired of waiting on slow CLI commands to finish like npm install, webpack, etc? This tool is here to help by sending a notification when slow commands finish.

You can manually specify the command you want to be notified about on the command line, but I recommend using an alias in your shell config file to automatically notify you by default.

Installation

foo@bar:~$ npm install -g notify-command

Now you can run it manually via notify <your command here>:

foo@bar:~$ notify sleep 5

screen shot 2019-02-08 at 4 56 29 pm

Recommended Usage

I recommend you use an alias for things that generally take a long time, such as npm, such that all npm commands now trigger a notification automatically

Example .zshrc:

# Check whether the `notify` command exists
[ -x "$(command -v notify)" ] && alias npm="notify npm"
foo@bar:~$ npm install

Now go do something else for a bit...

screen shot 2019-02-08 at 4 58 10 pm

About

Receive a OS notification when slow commands have finished running

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published