about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-08-20 10:23:39 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-08-20 10:23:39 +0100
commit5bb688d713ed9da70da23876743cdef9996c8741 (patch)
tree799a01c1246d72da39a5f366898390bd0f215efd /nix-conf
parenta8501a92585993f0f7edf5dfba234d4552eed3c6 (diff)
downloaddotfiles-5bb688d713ed9da70da23876743cdef9996c8741.tar.gz
Improve bat config
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/home/includes/common.nix22
-rw-r--r--nix-conf/home/includes/zsh.nix1
2 files changed, 17 insertions, 6 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix
index 6944636..6e77bfa 100644
--- a/nix-conf/home/includes/common.nix
+++ b/nix-conf/home/includes/common.nix
@@ -22,12 +22,6 @@ in
     aspellDicts.en
     aspellDicts.en-computers
     aspellDicts.en-science
-    bat
-    bat-extras.batdiff
-    bat-extras.batgrep
-    bat-extras.batman
-    bat-extras.batwatch
-    bat-extras.batpipe
     bottom
     broot
     curl
@@ -76,6 +70,22 @@ in
     unstable.wcurl
   ];
 
+  programs.bat = {
+    enable = true;
+    extraPackages = with pkgs.bat-extras; [
+      batdiff
+      batgrep
+      batman
+      batwatch
+      batpipe
+    ];
+    config = {
+      style = "full";
+      pager = "less -RXF";
+      map-syntax = [".ignore:.gitignore" "*.jenkinsfile:Groovy"];
+    };
+  };
+
   nix = {
     package = pkgs.nix;
     settings = {
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index db8cf3f..153857e 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -53,6 +53,7 @@ in
       mv = "mv -iv";
       mkdir = "mkdir -v";
       tree = "eza --tree";
+      cat = "bat -p";
 
       pp = "pushbullet push \"Pixel\" link \"\${1}\" \"\${1}\"";