From f4f1f8a8dc44100de48ff7444f0db93a60bf8241 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 10 Sep 2024 14:49:22 +0100 Subject: [PATCH] [file_previewer.sh]: Add RSS file previews with bat --- file_previewer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_previewer.sh b/file_previewer.sh index 9fbd234..e9ff6a0 100755 --- a/file_previewer.sh +++ b/file_previewer.sh @@ -23,6 +23,9 @@ case "$(mimetype --brief -- "$file")" in application/vnd.sqlite3) sqlite3 "$file" "SELECT * FROM sqlite_master WHERE type = 'table';" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + application/xml) + bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";; + application/x-java) javap "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;