-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pryrc
43 lines (35 loc) · 825 Bytes
/
.pryrc
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
39
40
41
42
#require 'irbtools/more'
#def safe_require(name)
# begin
# require name
# rescue LoadError
# puts "#{name} not loaded"
# end
#end
#safe_require 'irbtools/more'
if defined?(PryByebug)
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'
end
# Hit Enter to repeat last command
Pry::Commands.command /^$/, "repeat last command" do
_pry_.run_command Pry.history.to_a.last
end
Pry.config.color = true
Pry.config.theme = "solarized"
begin
require 'rubygems'
require 'awesome_print'
AwesomePrint.pry!
rescue LoadError => err
puts err
end
def show_sql_queries
if defined?(Rails)
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
end
# CONSTANTS
PST = 'Pacific Time (US & Canada)'