From ac4ad637d80aee6cee7c9d3e538133985f11e114 Mon Sep 17 00:00:00 2001 From: toonn Date: Wed, 23 Aug 2023 12:57:05 +0200 Subject: [PATCH] mime.types: Add common requests Type `text/x-shellscript` to align with `file(1)` behavior. No type added for JSON files because they officially have the `application/json` type. Added several programming language extensions with type `text/plain` this agrees with `file(1)` for most. Two exceptions are `.rs`, which `file(1)` assigns `text/x-c` and is less than ideal, and `.tsx` which `file(1)` assigns `text/x-c++` and is even further removed. Fixes #1804 --- ranger/data/mime.types | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ranger/data/mime.types b/ranger/data/mime.types index b880383648..6bfd19611a 100644 --- a/ranger/data/mime.types +++ b/ranger/data/mime.types @@ -31,7 +31,9 @@ image/webp webp message/rfc822 eml +text/plain hs lhs rs ts tsx text/x-ruby rb +text/x-shellscript sh video/ogg ogv ogm video/webm webm