Last active
December 26, 2015 14:59
-
-
Save furushchev/7170086 to your computer and use it in GitHub Desktop.
長すぎるrosmakeの途中にし始めた他の作業に没頭してrosmakeしていたことを忘れてしまう全ての人へ
This file contains 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
cat << \__EOF__ >> ~/.bashrc | |
# notify when rosmake finished | |
# from https://gist.github.com/furushchev/7170086/ | |
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) finished."' | |
function rosmake(){ | |
`which rosmake` $@; alert | |
} | |
__EOF__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment