Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for executable_file color #447

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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