Rokiのチラ裏

学生による学習のログ

terminal-notifierでプロセス終了後に通知させる

容量の多いファイルなどをwgetする際やビルド時などに通知させたい。作業ログ。

brew install terminal-notifier

以下のように使える。

{command} && terminal-notifier -message '{message}'

適当にエイリアスを設定しておく。

alias notification='terminal-notifier -message "Command completion"'