summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2023-08-23 12:57:05 +0200
committertoonn <toonn@toonn.io>2023-08-23 12:57:05 +0200
commitac4ad637d80aee6cee7c9d3e538133985f11e114 (patch)
tree26792eab278c9a32c7aa9cd69fd65ff1fd0fd826
parent3541095dc8e3dc07066b5a2e26160adeadee5540 (diff)
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
-rw-r--r--ranger/data/mime.types2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/data/mime.types b/ranger/data/mime.types
index b8803836..6bfd1961 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