summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Irwin <conrad.irwin@gmail.com>2013-04-02 23:17:13 -0700
committerConrad Irwin <conrad.irwin@gmail.com>2013-04-02 23:17:13 -0700
commit946ee50afdb0e7b62e23cca548d550ec2bc8adfa (patch)
treef513efeb5e2c22a35fa33fe29e1c8365e681bad1
parent12bee2c92ffc72606719e4a9f4e266ab575970b0 (diff)
parentfd0d9f8a8e4bc1c101943b9bcb79a9ba72d0d123 (diff)
downloadpry-946ee50afdb0e7b62e23cca548d550ec2bc8adfa.tar.gz
Merge pull request #893 from evaryont/master
Support customizing the location of ~/.pryrc
-rw-r--r--lib/pry/pry_class.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index f5bdcb41..8da62183 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -5,7 +5,7 @@ require 'pry/config'
class Pry
# The RC Files to load.
- HOME_RC_FILE = "~/.pryrc"
+ HOME_RC_FILE = ENV["PRYRC"] || "~/.pryrc"
LOCAL_RC_FILE = "./.pryrc"
# @return [Hash] Pry's `Thread.current` hash