diff --git a/file_previewer.sh b/file_previewer.sh index a8dd0f7..37fad32 100755 --- a/file_previewer.sh +++ b/file_previewer.sh @@ -21,11 +21,14 @@ case "$(mimetype --brief -- "$file")" in pdfinfo "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; application/vnd.rar) - unrar l "$file" |bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + unrar l "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; application/vnd.sqlite3) sqlite3 "$file" "SELECT * FROM sqlite_master WHERE type = 'table';" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + application/x-compressed-tar) + tar --list --ungzip --file "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + application/x-java) javap "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;