Pry as default REPL (gem "pry")
echo "Pry.start || exit rescue LoadError" > ~/.irbrc
I use one-liner above because:
- it fallbacks to
irb
ifpry
is not present - it leaves
irb
command unchanged -
bundle console
invokespry
only if it's specified as project's dependency (environment-aware)
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#