EDIT: ntfy is a much more robust tool that covers the same functionality.
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.
foo@bar:~$ npm install -g notify-command
Now you can run it manually via notify <your command here>
:
foo@bar:~$ notify sleep 5
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...