If you are a frontend engineer, you would have come across this below command.
Developers peep every now and then on to the terminal to see if the task is complete. This may not be a regular process but will be a nightmare if you switch regularly between or work on multiple projects.
To overcome this, I just thought of creating a small hack which notifies you once the npm install task is complete. This currently works only on Mac Machines.
While running your command, you could do the following.
npm install && osascript -e ‘display notification “Is now complete” with title “NPM INSTALL”’
What is osascript ?
Alternatively you can add this below alias to your bash_profile so that it runs each time when you initiate the process.
In your terminal, enter
and add the below line to your bash profile
alias npminstall=”npm install && osascript -e ‘display notification \”Is now complete\” with title \”NPM INSTALL\”’”
From now on, when ever you do an “npminstall” (without the space as per your defined alias), it will install and notify you :).
Also I have this Gist uploaded in Github which is my go to bash_profile that I collect across the web. I keep updating it often with shortcuts as I find to make sure that things are easier and more customised for me while working on terminal. You could use this if you like it.
Feel free to suggest if you have better options. This was just a thought that came on top of my mind which led me to this post. Feedback is welcome :).
If you find this interesting, clap 10 times. If you updated your bash_profile to start using this, clap 50 times 😛 😇. Thanks.