home: zsh: fix prezto config

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-06-14 17:23:25 +05:30
parent c590fb01dc
commit 0ecd267fa8
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
{ ... }: { lib, ... }:
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
@@ -16,8 +16,11 @@
prompt.theme = "pure"; prompt.theme = "pure";
autosuggestions.color = "fg=yellow,bold"; autosuggestions.color = "fg=yellow,bold";
utility.safeOps = false; utility.safeOps = false;
extraConfig = lib.mkBefore ''
export GREP_COLORS="ms=01;31"
'';
}; };
initExtra = '' initContent = lib.mkAfter ''
unsetopt extendedGlob unsetopt extendedGlob
[[ -f ~/.zsh_custom ]] && source ~/.zsh_custom [[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
''; '';

View File

@@ -3,9 +3,8 @@ let
secretPath = "${config.home.homeDirectory}/.zshenv_secret"; secretPath = "${config.home.homeDirectory}/.zshenv_secret";
in in
{ {
programs.zsh.initExtra = lib.mkForce '' programs.zsh.initContent = lib.mkAfter ''
. ${secretPath}; . ${secretPath};
unsetopt extendedGlob
''; '';
age.secrets.zshenv_secret = { age.secrets.zshenv_secret = {