Last active
December 19, 2015 03:18
-
-
Save vagnerzampieri/5889092 to your computer and use it in GitHub Desktop.
Para alertar se um comando foi encerrado.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sudo apt-get install libnotify-bin | |
| # para testar | |
| # sleep 5; alert | |
| 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)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment