Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
Make locate case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
s-mage committed Feb 6, 2016
1 parent 3a016ea commit 1cfc380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rush/dir.rb
Expand Up @@ -49,7 +49,7 @@ def [](key)
alias_method :/, :[]

def locate(path)
located = bash("locate #{path}").split("\n").
located = bash("locate -i #{path}").split("\n").
map { |x| x.dir? ? Rush::Dir.new(x) : Rush::File.new(x) }
located.size == 1 ? located.first : located
end
Expand Down

0 comments on commit 1cfc380

Please sign in to comment.