mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Merge pull request #1297 from github/map-pryrc-to-ruby
Add .pryrc support
This commit is contained in:
@@ -1885,6 +1885,7 @@ Ruby:
|
||||
interpreters:
|
||||
- ruby
|
||||
filenames:
|
||||
- .pryrc
|
||||
- Appraisals
|
||||
- Berksfile
|
||||
- Buildfile
|
||||
|
||||
19
samples/Ruby/filenames/.pryrc
Normal file
19
samples/Ruby/filenames/.pryrc
Normal 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!
|
||||
Reference in New Issue
Block a user