Add .pryrc support

This commit is contained in:
Kevin Sawicki
2014-06-20 11:18:02 -07:00
parent abb05eace6
commit 858a66ccc8
2 changed files with 20 additions and 0 deletions

View File

@@ -1876,6 +1876,7 @@ Ruby:
- .irbrc
- .mspec
- .podspec
- .pryrc
- .rbuild
- .rbw
- .rbx

19
samples/Ruby/.pryrc Normal file
View File

@@ -0,0 +1,19 @@
Pry.config.commands.import Pry::ExtendedCommands::Experimental
Pry.config.pager = false
Pry.config.color = false
Pry.config.commands.alias_command "lM", "ls -M"
Pry.config.commands.command "add", "Add a list of numbers together" do |*args|
output.puts "Result is: #{args.map(&:to_i).inject(&:+)}"
end
Pry.config.history.should_save = false
Pry.config.prompt = [proc { "input> " },
proc { " | " }]
# Disable pry-buggy-plug:
Pry.plugins["buggy-plug"].disable!