Created
July 20, 2009 19:35
-
-
Save craigw/150796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
libs = [] | |
libs << "irb/completion" | |
libs << File.dirname(__FILE__) + '/../config/boot.rb' | |
command_line = [] | |
command_line << "irb" | |
command_line << libs.inject("") { |acc, lib| acc + %( -r "#{lib}") } | |
command_line << "--simple-prompt" | |
command = command_line.join(" ") | |
puts "Welcome to the <APPLICATION NAME> console interface." | |
exec command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment