From b11055fd8ea917f2c9807e7fd76c8c334719bd13 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Wed, 3 Jul 2024 08:00:00 +0100
Subject: [PATCH] zsh: configure auto-notify ignore settings

---
 lib/shared/modules/zsh.nix                    | 19 ++++---------------
 lib/shared/modules/zsh/auto-notify-ignore.nix | 17 +++++++++++++++++
 2 files changed, 21 insertions(+), 15 deletions(-)
 create mode 100644 lib/shared/modules/zsh/auto-notify-ignore.nix

diff --git a/lib/shared/modules/zsh.nix b/lib/shared/modules/zsh.nix
index c4664cce..dfbad93e 100644
--- a/lib/shared/modules/zsh.nix
+++ b/lib/shared/modules/zsh.nix
@@ -122,22 +122,11 @@
         { name = "zsh-users/zsh-syntax-highlighting"; }
       ];
     };
+
+    sessionVariables = {
+      AUTO_NOTIFY_IGNORE = import ./zsh/auto-notify-ignore.nix;
+    };
   };
 
   home.file.".config/zsh-abbr/user-abbreviations".text = builtins.readFile ./zsh/abbreviations.zsh;
-
-  home.sessionVariables = {
-    AUTO_NOTIFY_IGNORE = builtins.concatStringsSep " " [
-      "git commit"
-      "htop"
-      "less"
-      "man"
-      "more"
-      "nix develop"
-      "nvim"
-      "ssh"
-      "tldr"
-      "watch"
-    ];
-  };
 }
diff --git a/lib/shared/modules/zsh/auto-notify-ignore.nix b/lib/shared/modules/zsh/auto-notify-ignore.nix
new file mode 100644
index 00000000..8384ef57
--- /dev/null
+++ b/lib/shared/modules/zsh/auto-notify-ignore.nix
@@ -0,0 +1,17 @@
+[
+  "atuin"
+  "bat"
+  "cat"
+  "docker"
+  "git"
+  "htop"
+  "less"
+  "man"
+  "more"
+  "nix develop"
+  "nvim"
+  "ssh"
+  "t"
+  "tldr"
+  "watch"
+]