mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Use shell icon for when file is exec and has no extension
This commit is contained in:
parent
8bf17ff89d
commit
bdb09f52c5
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ impl Icons {
|
|||
}) {
|
||||
// Use the known extensions.
|
||||
icon
|
||||
} else if let FileType::File { exec: true, .. } = file_type {
|
||||
// If file has no extension and is executable
|
||||
"\u{f489}" // ""
|
||||
} else {
|
||||
// Use the default icons.
|
||||
self.default_file_icon
|
||||
|
|
Loading…
Reference in a new issue