Skip to content

Commit

Permalink
Merge pull request #447 from FelixDombek/master
Browse files Browse the repository at this point in the history
Add support for executable_file color
  • Loading branch information
avdv authored Mar 5, 2021
2 parents 5d1e1d3 + 6ebb1ef commit d08ec7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/colorls/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def file_color(file, key)
when file.chardev? then :chardev
when file.blockdev? then :blockdev
when file.socket? then :socket
when file.executable? then :executable_file
when @files.key?(key) then :recognized_file
else :unrecognized_file
end
Expand Down
3 changes: 2 additions & 1 deletion lib/yaml/dark_colors.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Main Colors
unrecognized_file: gold
recognized_file: lime
recognized_file: yellow
executable_file: lime
dir: dodgerblue

# Link
Expand Down
1 change: 1 addition & 0 deletions lib/yaml/light_colors.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Main Colors
unrecognized_file: darkred
recognized_file: darkgreen
executable_file: green
dir: navyblue

# Link
Expand Down

0 comments on commit d08ec7a

Please sign in to comment.