Permalink
Browse files

Everyone starts with Hello World

  • Loading branch information...
1 parent e6e80e6 commit 3fd3e9c9c6405039e802795ff0bedffff35fed47 @steveklabnik steveklabnik committed Dec 19, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 app/boot.rb
View
@@ -22,3 +22,12 @@ def HH.anonymous_binding
require 'app/ui/widgets'
require 'app/ui/completion'
require 'app/ui/tabs/sidetabs'
+
+#let's give them a simple program to start off with!
+if HH::PREFS['first_run'].nil?
+ File.open(File.join(HH::USER, "Hello World.rb"), "w") do |f|
+ f << 'alert "Hello, world!"'
+ end
+
+ #the first_run pref will get set by the tour notice in app/ui/mainwindow
+end

0 comments on commit 3fd3e9c

Please sign in to comment.