From 3695b4b3c0b77be6dc56a1a9a969322d3b9880b6 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 17 Sep 2024 21:13:11 +0100 Subject: [PATCH] [file_previewer.sh]: Add .sql file previews with bat --- file_previewer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_previewer.sh b/file_previewer.sh index 442526d..fbf5205 100755 --- a/file_previewer.sh +++ b/file_previewer.sh @@ -20,6 +20,9 @@ case "$(mimetype --brief -- "$file")" in pdftoppm -jpeg "$file" -singlefile | chafa --size "$(($width-4))"x"$height" pdfinfo "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + application/sql) + bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";; + application/toml) bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";;