home: zsh: fix prezto config
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -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
 | 
			
		||||
    '';
 | 
			
		||||
 
 | 
			
		||||
@@ -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 = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user