Pry.config.editor="mvim"####` Launch Pry with access to the entire Rails stack.####' If you have Pry in your Gemfile, you can pass: ./script/console --irb=pry instead.####` If you don't, you can load it through the lines below :)rails=File.joinDir.getwd,'config','environment.rb'ifFile.exist?(rails)&&ENV['SKIP\_RAILS'].nil?requirerailsifRails.version[0..0]=="2"require'console\_app'require'console\_with\_helpers'elsifRails.version[0..0]=="3"require'rails/console/app'require'rails/console/helpers'\# Show sql outputActiveRecord::Base.logger=Logger.new(STDOUT)ifdefined?ActiveRecord::Base\# Add reload! command if rails version \> 3.2ifRails.version[2..2].to\_i\>=2includeRails::ConsoleMethodsendelsewarn"[WARN] cannot load Rails console commands (Not on Rails2 orRails3?)"endend\# To edit the method given by editor mvimclassObjectdefmvim(method\_name)file,line=method(method\_name).source\_location\`mvim '\#{file}' +\#{line}\`endend\# Break out of the Bundler jail\# fromhttps://github.com/ConradIrwin/pry-debundle/blob/master/lib/pry-debundle.rbifdefined?BundlerGem.post\_reset\_hooks.reject!{|hook|hook.source\_location.first=\~%r{/bundler/}}Gem::Specification.resetload'rubygems/custom\_require.rb'endifdefined?Railsbeginrequire'hirb'rescueLoadErrorendifdefined?Hirb\# Dirty hack to support in-session Hirb.disable/enableHirb::View.instance\_evaldodefenable\_output\_method@output\_method=truePry.config.print=procdo|output,value|Hirb::View.view\_or\_page\_output(value)||Pry::DEFAULT\_PRINT.call(output,value)endenddefdisable\_output\_methodPry.config.print=proc{|output,value|Pry::DEFAULT\_PRINT.call(output,value)}@output\_method=nilendendHirb.enableendendbeginrequire'awesome\_print'rescueLoadErrorend