tn is a wrapper for terminal-notifier to make a terminal notification after some command is done
$ brew tap tony612/pat
$ brew install tn
or
$ brew install tony612/pat/tn
Just prepend tn
to your command
$ tn rake -T
You'll receive the notification if it successes
However, for a failed command like this
$ tn rake foo
you'll get
Installation via homebrew- Completions
Copyright (c) 2014 Tony Han. See LICENSE for details.