From bd67cf43a9feecb32af806e6bdfe34853020eb60 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 20 Dec 2023 19:14:23 -0500 Subject: [PATCH] joshuto: Ensure TypeScript/JavaScript files show previews --- home/joshuto.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/joshuto.nix b/home/joshuto.nix index 1a26e493..89c8240e 100644 --- a/home/joshuto.nix +++ b/home/joshuto.nix @@ -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;;