Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding irb completion and simple prompt

  • Loading branch information...
commit 60bfb566070c2b84787a6a399371cb3c73d7e97e 1 parent ac31bcf
@ryanb ryanb authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 irbrc
View
10 irbrc
@@ -1,8 +1,10 @@
#!/usr/bin/ruby
-
-load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']
-
-# remember previous commands
+require 'irb/completion'
require 'irb/ext/save-history'
+
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
+
+IRB.conf[:PROMPT_MODE] = :SIMPLE
+
+load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']
Please sign in to comment.
Something went wrong with that request. Please try again.