Skip to content

Instantly share code, notes, and snippets.

@eiel
Created April 11, 2013 07:40
Show Gist options
  • Save eiel/5361485 to your computer and use it in GitHub Desktop.
Save eiel/5361485 to your computer and use it in GitHub Desktop.
通知するだけ。 コマンドの最後に ;t とつけて使う。 必須 gem install terminal-notifier
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
message = ARGV.join(" ")
if message.empty?
message = 'なにか終わったかも'end
system "terminal-notifier -message #{message} -execute 'open -a iTerm.app'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment