From 0ecd267fa80ec55a0e4853b1cfe2404955b4dbc9 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Sat, 14 Jun 2025 17:23:25 +0530 Subject: [PATCH] home: zsh: fix prezto config Signed-off-by: Amneesh Singh --- home/common/zsh.nix | 7 +++++-- home/natto/zsh.nix | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/common/zsh.nix b/home/common/zsh.nix index af7d41c..a96f0d3 100644 --- a/home/common/zsh.nix +++ b/home/common/zsh.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: { programs.zsh = { enable = true; @@ -16,8 +16,11 @@ prompt.theme = "pure"; autosuggestions.color = "fg=yellow,bold"; utility.safeOps = false; + extraConfig = lib.mkBefore '' + export GREP_COLORS="ms=01;31" + ''; }; - initExtra = '' + initContent = lib.mkAfter '' unsetopt extendedGlob [[ -f ~/.zsh_custom ]] && source ~/.zsh_custom ''; diff --git a/home/natto/zsh.nix b/home/natto/zsh.nix index e1777e6..6d0e5d3 100644 --- a/home/natto/zsh.nix +++ b/home/natto/zsh.nix @@ -3,9 +3,8 @@ let secretPath = "${config.home.homeDirectory}/.zshenv_secret"; in { - programs.zsh.initExtra = lib.mkForce '' + programs.zsh.initContent = lib.mkAfter '' . ${secretPath}; - unsetopt extendedGlob ''; age.secrets.zshenv_secret = {