Skip to content

Commit

Permalink
Merge pull request #348 from maxwellainatchi/patch-1
Browse files Browse the repository at this point in the history
case-insensitive directory matching
  • Loading branch information
athityakumar authored Mar 17, 2020
2 parents ed2c3c3 + 8b6ba5e commit ea2cc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colorls/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def file_color(file, key)

def options(content)
if content.directory?
key = content.name.to_sym
key = content.name.downcase.to_sym
key = @folder_aliases[key] unless @folders.key? key
key = :folder if key.nil?
color = @colors[:dir]
Expand Down

0 comments on commit ea2cc0f

Please sign in to comment.