Skip to content

Commit

Permalink
Remove brice gem, use wirb and irb native history instead
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed May 11, 2016
1 parent 67aba5a commit a0451a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gems
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ autotest
autotest-fsevent
autotest-growl
autotest-rails-pure
brice
bundler
cocoapods
gemedit
Expand All @@ -11,3 +10,4 @@ guard-rspec
pry
rake
terminal-notifier-guard
wirb
17 changes: 6 additions & 11 deletions .irbrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ if defined?(::Mongoid)
Mongoid.logger = $console_logger
end

if !defined?(::Pry)
# Hack to load brice, even from inside a bundle without the brice gem
require Dir["#{Gem.dir}/gems/brice-*/lib/brice.rb"].first
if defined?(::Brice)
Brice.init do |config|
config.history.path = '~/.irb_history'
config.history.size = 1000
config.history.merge = true
end
end
end
require 'irb/completion'
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:SAVE_HISTORY] = 1000

require 'wirb'
Wirb.start
2 changes: 0 additions & 2 deletions .pryrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
load File.expand_path('../.irbrc', __FILE__)

Pry.config.history.file = '~/.irb_history'

0 comments on commit a0451a4

Please sign in to comment.