From 858a66ccc849fc5caaab84d1dace36debda22668 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 20 Jun 2014 11:18:02 -0700 Subject: [PATCH] Add .pryrc support --- lib/linguist/languages.yml | 1 + samples/Ruby/.pryrc | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 samples/Ruby/.pryrc diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 15c3a588..fffb8c42 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1876,6 +1876,7 @@ Ruby: - .irbrc - .mspec - .podspec + - .pryrc - .rbuild - .rbw - .rbx diff --git a/samples/Ruby/.pryrc b/samples/Ruby/.pryrc new file mode 100644 index 00000000..3fb31ad4 --- /dev/null +++ b/samples/Ruby/.pryrc @@ -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!