1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/script/console
2009-12-15 07:40:57 +02:00

10 lines
No EOL
438 B
Ruby
Executable file

#!/usr/bin/env ruby
# File: script/console
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
libs << " -I #{File.dirname(__FILE__) + '/../lib'} -r v8"
puts "Revving Up The Ruby Racer!"
exec "#{irb} #{libs} --simple-prompt"