Permalink
Browse files

Added irbrc and inputrc

git-svn-id: http://svn.optimistictech.com/jferris/config@781 dc715f54-e70d-0410-b702-da5329ab684b
  • Loading branch information...
1 parent 552718b commit d167ab92022113128b336d21bc644f2b0885b0f9 jferris committed Jun 13, 2008
Showing with 19 additions and 0 deletions.
  1. +3 −0 inputrc
  2. +16 −0 irbrc
View
@@ -0,0 +1,3 @@
+# Edit commands in Vi mode
+set editing-mode vi
+set keymap vi
View
16 irbrc
@@ -0,0 +1,16 @@
+# print SQL to STDOUT
+if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
+ require 'logger'
+ RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
+end
+
+# Autocomplete
+require 'irb/completion'
+
+# Prompt behavior
+ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
+
+# History
+require 'irb/ext/save-history'
+IRB.conf[:SAVE_HISTORY] = 100
+IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"

0 comments on commit d167ab9

Please sign in to comment.