-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.irbrc
38 lines (30 loc) · 1020 Bytes
/
.irbrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'rubygems'
require 'ap'
require 'irb/completion'
require 'irb/ext/save-history'
begin
# load wirble
require 'wirble'
# start wirble (with color)
Wirble.init
Wirble.colorize
rescue LoadError => err
warn "Couldn't load Wirble: #{err}"
end
IRB.conf[:SAVE_HISTORY] = 2000
IRB.conf[:HISTORY_FILE] = '/home/emallove/.irb-history'
IRB.conf[:EVAL_HISTORY] = 200
# Emits a ton of verbose output from $HOME/.rvm/rubies
#
# IRB.conf[:USE_TRACER] = true
ARGV.concat [ "--readline",
"--prompt-mode",
"simple" ]
# script_console_running = ENV.include?('RAILS_ENV') && IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers')
# rails_running = ENV.include?('RAILS_ENV') && !(IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers'))
# irb_standalone_running = !script_console_running && !rails_running
#
# if script_console_running
# require 'logger'
# Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
# end