For large projects, local builds can take a lot (more than 10 minutes).
During this time, you normally switch to another task or simply get stuck in social media.
If you use a bash console to run Maven or similar tools, this simple trick can save you some minutes a day.
- Install this:
Shell1brew install terminal-notifier
- Add this alias to your .bash_profile:
Shell1alias nwd='echo "Process terminated" | terminal-notifier -sound default'
nwd stands for Notify When Done.
- Append “; nwd” to each build command. e.g. :
Shell123mvn clean install ; nwdgulp build ; nwdgradle build ; nwd
When the build will be finished, you will be notified with a pop up and go back to the task:
The trick can be easily emulated on others OS. Ubuntu, for example, has the built in “notify-send” to send notifications from the terminal.