1
0
forked from extern/nix-config

joshuto: Ensure TypeScript/JavaScript files show previews

This commit is contained in:
Donovan Glover 2023-12-20 19:14:23 -05:00
parent 5a08ca328c
commit bd67cf43a9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -482,7 +482,11 @@
handle_extension() {
case "''${FILE_EXTENSION_LOWER}" in
lock)
ts | js | lock)
bat --color=always --paging=never \
--style=plain \
--terminal-width="''${PREVIEW_WIDTH}" \
"''${FILE_PATH}" && exit 0
cat "''${FILE_PATH}" && exit 0
exit 1;;