[file_previewer.sh]: Add .sql file previews with bat

This commit is contained in:
2024-09-17 21:13:11 +01:00
parent aac4075dbe
commit 3695b4b3c0

View File

@ -20,6 +20,9 @@ case "$(mimetype --brief -- "$file")" in
pdftoppm -jpeg "$file" -singlefile | chafa --size "$(($width-4))"x"$height" pdftoppm -jpeg "$file" -singlefile | chafa --size "$(($width-4))"x"$height"
pdfinfo "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; 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) application/toml)
bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";; bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";;