LoginSignup
10
10

More than 5 years have passed since last update.

iTerm2でエラーをトリガーにDockアイコンをbounceさせたりしたい

Posted at

標準の機能で出来ます。
https://www.iterm2.com/documentation-one-page.html

設定

Profiles > Advanced > TriggerからEditにはいる。

Screen Shot 2016-03-08 at 12.00.24.png

左下の「+」でトリガーを追加する。
表題の「エラーをトリガーに」というのは、例えばエラー時に「error」という文字列が表示されたときに何かを実行させるようにする。そしてAction、ここではBounce Doc Iconにする。

Screen Shot 2016-03-08 at 12.08.22.png
すると、こんな感じ。

iterm2トリガーデモ

Actionsは色々。エラーならRing Bellとかでも良いかも。

Screen Shot 2016-03-08 at 12.08.14.png

コマンドの実行などもできるので、使いようによってはgulpやらGruntで色々書かなくても、簡易的なビルドタスクとかに使ってもよいかも。

10
10
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
10
10