mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-14 17:19:56 +00:00
Update src/output/icons.rs
Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
This commit is contained in:
parent
c42e0b3945
commit
765fcf64c9
@ -96,10 +96,10 @@ pub fn icon_for_file(file: &File<'_>) -> char {
|
|||||||
if let Some(icon) = MAP_BY_NAME.get(file.name.as_str()) { *icon }
|
if let Some(icon) = MAP_BY_NAME.get(file.name.as_str()) { *icon }
|
||||||
else if file.points_to_directory() {
|
else if file.points_to_directory() {
|
||||||
match file.name.as_str() {
|
match file.name.as_str() {
|
||||||
"bin" => '\u{e5fc}',
|
"bin" => '\u{e5fc}', //
|
||||||
".git" => '\u{f1d3}',
|
".git" => '\u{f1d3}', //
|
||||||
".idea" => '\u{e7b5}',
|
".idea" => '\u{e7b5}', //
|
||||||
_ => '\u{f115}'
|
_ => '\u{f115}' //
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if let Some(icon) = extensions.icon_file(file) { icon }
|
else if let Some(icon) = extensions.icon_file(file) { icon }
|
||||||
|
Loading…
Reference in New Issue
Block a user