Skip to content

Instantly share code, notes, and snippets.

@furushchev
Last active December 26, 2015 14:59
Show Gist options
  • Save furushchev/7170086 to your computer and use it in GitHub Desktop.
Save furushchev/7170086 to your computer and use it in GitHub Desktop.
長すぎるrosmakeの途中にし始めた他の作業に没頭してrosmakeしていたことを忘れてしまう全ての人へ
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