[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
69
69

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iTerm2で特定文字列をハイライトやGrowl通知する

Last updated at Posted at 2012-02-01

ログを見ているときなどに目で全部追うのはつらい.そこで特定の文字列が出たときにハイライトしたり何かアクションを行わせるという設定がiTerm2にある.(バージョン:Build 1.0.0.20120123)

設定方法

iTerm2の設定画面で,Profiles->Advanced->TriggersのEditボタンを押すとTrigger登録画面が出る.
「正規表現」と「それにマッチする文字列がターミナルに印字されたときのアクション」を登録できるので,Send Growl AlertRun Commandなど好きなものを登録する.
登録した後はechoコマンドでチェックすればよい.例えば"Error"という文字列を登録したならecho "Error"とすればtriggerされるはず.
Growlだけではなくて特定文字列のHighlightなんかも便利.

69
69
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?