You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
477 B
19 lines
477 B
#!/data/github/current/bin/safe-ruby |
|
|
|
require "irb" |
|
|
|
ARGV.append("--prompt=default") |
|
ARGV.append("--readline") |
|
|
|
ENV["IRBRC"], ENV["IRBRC_WAS"] = "/data/github/current/config/console/irbrc.rb", ENV["IRBRC"] |
|
|
|
require "irb/completion" |
|
|
|
IRB.conf[:AUTO_INDENT] = true |
|
IRB.conf[:USE_READLINE] = true |
|
IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES) |
|
unless IRB.conf[:LOAD_MODULES].include?('irb/completion') |
|
IRB.conf[:LOAD_MODULES] << 'irb/completion' |
|
end |
|
|
|
IRB.start
|
|
|