Ubuntu Alert Alias – Command Desktop Notification

While I was fiddling with my .bashrc today, I noticed an BASH Alias called alert. You ever had a job like tar or rsync running, doing other stuff beside it and missed that the job already finished? With alert not anymore. alert is using notify-send to send an Desktop Notification with the last executed command. It can even tell you, if the command was successful or not by looking at the exit code. I found it perfect for notifying a long running job finished.

curl -o /dev/null http://aboutsimon.com/feed/; alert

Ubuntu Alert Alias Notification Usage

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>