Permalink
Browse files

adding irb completion and simple prompt

  • Loading branch information...
1 parent ac31bcf commit 60bfb566070c2b84787a6a399371cb3c73d7e97e @ryanb ryanb committed Aug 4, 2008
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']

0 comments on commit 60bfb56

Please sign in to comment.