LoginSignup
4
4

More than 5 years have passed since last update.

rosmakeが終わった後に通知する

Posted at

.bashrcとかに以下を追加。

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
}

rosmakeが終わると画面右上に通知がでる。
よくビルド中に他の作業をしていて、ビルドしていたのを忘れるので。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4