Commits

Yusuke MURAOKA committed 85e4487

update pomodoro function

Comments (0)

Files changed (1)

 
 function pomodoro {
     cnt=$((25 * 60))  # 25 minutes
+
+    start_serif="The pomodoro \"$1\" is started."
+    done_serif="The pomodoro \"$1\" has been done."
+
+    growlnotify -m "$start_serif"; say "$start_serif"
+
     echo "The pomodoro: \"$1\""
     while [ $cnt -ge 0 ]
     do
         sleep 1
         cnt=$(($cnt - 1))
     done
-    serif="The pomodoro \"$1\" has been done."
-    growlnotify -s -m "$serif"; say "$serif"
-    echo "\n$serif"
+
+    growlnotify -s -m "$done_serif"; say "$done_serif"
+
+    echo "\n$done_serif"
 }