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 = {