notify-command
v1.0.2
Published
Notify when commands are finished
Downloads
10
Maintainers
Readme
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
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...