1.0.2 • Published 5 years ago

notify-command v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

notify-command

Tired of waiting on slow CLI commands to finish like npm install, webpack, etc? This tool is here too help by setting up with 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