Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:35
Show Gist options
  • Save craigw/150796 to your computer and use it in GitHub Desktop.
Save craigw/150796 to your computer and use it in GitHub Desktop.
#! /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