1. Ryan Wilcox
  2. dotfiles

Commits

Ryan Wilcox  committed 40df5c2

added notify script that will say when my name is called

  • Participants
  • Parent commits 9df610d
  • Branches default

Comments (0)

Files changed (1)

File bin/notify_me.rb

View file
+#!/usr/bin/ruby
+
+MATCHING_REGEX = /(@Ryan|ryan|Ryan)/
+
+text_in = STDIN.read.strip
+
+if text_in =~ MATCHING_REGEX
+  `say "#{text_in}"`
+end
+