summaryrefslogtreecommitdiff
path: root/bin/pry
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2011-03-05 01:37:59 +1300
committerJohn Mair <jrmair@gmail.com>2011-03-05 01:37:59 +1300
commitd299f3be3004d5ccab5e7369380ef5f6863665ed (patch)
treecd39bae534b6e537d33cbcf665801bab048fd1b8 /bin/pry
parent52349f552a714977f089f42a7c8cb0ce35a646ff (diff)
downloadpry-d299f3be3004d5ccab5e7369380ef5f6863665ed.tar.gz
version 0.6.8pre4, changed Pry::Commands.dup to Pry::Commands.clone due to rubinius bug. Made .pryrc run on ordinary pry sessions (not just command line), still need to complete whereami command
Diffstat (limited to 'bin/pry')
-rw-r--r--bin/pry5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/pry b/bin/pry
index cfba91c6..c177a71d 100644
--- a/bin/pry
+++ b/bin/pry
@@ -65,10 +65,11 @@ See: `https://github.com/banister` for more information.
end
end.parse!
-rcpath = File.expand_path("~/.pryrc")
+# invoked via cli
+Pry.cli = true
# load ~/.pryrc, if not suppressed with -f option
-load rcpath if File.exists?(rcpath) && options[:loadrc]
+Pry.should_load_rc = false if !options[:loadrc]
# create the actual context
context = Pry.binding_for(eval(options[:context_string]))