changeset 548:6b2c56da7c9d

.bashrc
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 18 Nov 2013 11:24:23 -0800
parents 2b0d254d4271
children 3168816f2d28
files .bashrc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Wed Nov 13 20:41:56 2013 -0800
+++ b/.bashrc	Mon Nov 18 11:24:23 2013 -0800
@@ -66,6 +66,12 @@
 alias mozharness-bug="bz new --product 'Release Engineering' 'General Automation' --cc ':aki' --whiteboard 'mozharness'"
 alias talos-bug="bz new Talos --cc ':jmaher'"
 
+# notification: from
+# http://www.netinfinity.org/2013/02/4/bits-and-pieces-ubuntu-terminal-notification.html
+alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
+alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"'
+
+
 # PROMPT
 PS1='│'
 PS2='.'