Last active
December 1, 2016 21:21
-
-
Save wiseleyb/e28920b9255b62c9b672d9123da757c5 to your computer and use it in GitHub Desktop.
Customize console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can customize your console this way: | |
In ~/.spring.rb | |
irbrc = "~/.irbrc" | |
require File.expand_path(irbrc) if File.exist?(irbrc) | |
In ~/.irbrc | |
require 'irb/ext/save-history' | |
IRB.conf[:SAVE_HISTORY] = 200 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history" | |
if defined?(Zeemee) | |
def ben | |
User.find_by_email('wiseleyb@gmail.com') | |
end | |
end | |
bin/spring stop | |
be rails c | |
good to go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment