Skip to content

Instantly share code, notes, and snippets.

@zentrification
Created February 25, 2019 16:54
Show Gist options
  • Save zentrification/f245511a8daf397b61397f46f147ef50 to your computer and use it in GitHub Desktop.
Save zentrification/f245511a8daf397b61397f46f147ef50 to your computer and use it in GitHub Desktop.
Pry settings
set blink-matching-paren on
set completion-ignore-case on
set completion-map-case on
set completion-query-items 30
set editing-mode vi
set show-all-if-ambiguous on
set visible-stats on
# need to set up/down arrows to search in both modes
set keymap vi-command
"\e[A": history-search-backward
"\e[B": history-search-forward
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
TAB: menu-complete
require 'rubygems'
require 'irb/completion'
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:EVAL_HISTORY] = 1000
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = File::expand_path("~/.irb_history")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment