From bdb09f52c5ced348201d3bf91b8d099f450ff3e8 Mon Sep 17 00:00:00 2001 From: Tanner Babcock Date: Tue, 3 May 2022 00:31:22 +0000 Subject: [PATCH] Use shell icon for when file is exec and has no extension --- src/icon.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/icon.rs b/src/icon.rs index d614a8a..4e1748e 100644 --- a/src/icon.rs +++ b/src/icon.rs @@ -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