Permalink
Browse files

pry no pager (for emacs' dumb terminal), emacsclient open file at lin…

…e, irb save history
  • Loading branch information...
1 parent 11ed62f commit 20b3ce05cdfcf118e4f4c9dab394db17b070a9ec @waymondo committed Feb 5, 2013
Showing with 9 additions and 1 deletion.
  1. +7 −0 irbrc
  2. +2 −1 pryrc
View
7 irbrc
@@ -3,3 +3,10 @@ begin
rescue LoadError => err
puts "gem install awesome_print # <-- highly recommended"
end
+
+require 'irb/completion'
+require 'irb/ext/save-history'
+
+IRB.conf[:SAVE_HISTORY] = 1000
+IRB.conf[:HISTORY_FILE] = File.expand_path("~/.irb_history")
+IRB.conf[:PROMPT_MODE] = :SIMPLE
View
3 pryrc
@@ -1,4 +1,5 @@
-Pry.editor = 'emacs'
+Pry.config.editor = proc { |file, line| "emacsclient +#{line} #{file}" }
+Pry.config.pager = false
Pry.config.ls.separator = "\n" # new lines between methods
begin

0 comments on commit 20b3ce0

Please sign in to comment.