diff --git a/lib/colorls/monkeys.rb b/lib/colorls/monkeys.rb index ecd6a66..e66c1a6 100644 --- a/lib/colorls/monkeys.rb +++ b/lib/colorls/monkeys.rb @@ -2,7 +2,7 @@ class String def colorize(color) - self.color(color.to_sym) + self.color(color) end def remove(pattern) diff --git a/lib/colorls/yaml.rb b/lib/colorls/yaml.rb index 932faad..ff5691f 100644 --- a/lib/colorls/yaml.rb +++ b/lib/colorls/yaml.rb @@ -16,7 +16,7 @@ module ColorLS return yaml unless aliase - yaml.to_a.map! { |k, v| [k, v.to_sym] }.to_h + yaml.to_a.map! { |k, v| v.include?('#') ? [k, v] : [k, v.to_sym] }.to_h end def read_file(filepath) diff --git a/man/colorls.1 b/man/colorls.1 index e50ed4c..55b708a 100644 --- a/man/colorls.1 +++ b/man/colorls.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "COLORLS" "1" "April 2020" "colorls 1.4.0" "colorls Manual" +.TH "COLORLS" "1" "May 2020" "colorls 1.4.1" "colorls Manual" . .SH "NAME" \fBcolorls\fR \- list directory contents with colors and icons