home: refactor common files
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										28
									
								
								home/common/zsh/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								home/common/zsh/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    autocd = true;
 | 
			
		||||
    history = rec {
 | 
			
		||||
      expireDuplicatesFirst = true;
 | 
			
		||||
      size = 30000;
 | 
			
		||||
      save = size;
 | 
			
		||||
    };
 | 
			
		||||
    autosuggestion.enable = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
    syntaxHighlighting.enable = true;
 | 
			
		||||
    prezto = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      prompt.theme = "pure";
 | 
			
		||||
      autosuggestions.color = "fg=yellow,bold";
 | 
			
		||||
      utility.safeOps = false;
 | 
			
		||||
      extraConfig = lib.mkBefore ''
 | 
			
		||||
        export GREP_COLORS="ms=01;31"
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
    initContent = lib.mkAfter ''
 | 
			
		||||
      unsetopt extendedGlob
 | 
			
		||||
      [[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user