[file_previewer.sh]: Add RSS file previews with bat
This commit is contained in:
@ -23,6 +23,9 @@ case "$(mimetype --brief -- "$file")" in
|
|||||||
application/vnd.sqlite3)
|
application/vnd.sqlite3)
|
||||||
sqlite3 "$file" "SELECT * FROM sqlite_master WHERE type = 'table';" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
|
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)
|
application/x-java)
|
||||||
javap "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
|
javap "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user