mirror of
				https://github.com/lxstinthesky/matrix.git
				synced 2025-11-04 01:42:45 +00:00 
			
		
		
		
	A simple flake setup with tests and VM support
This commit is contained in:
		
							
								
								
									
										40
									
								
								nix/modules/zsh.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								nix/modules/zsh.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
{ lib, config, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
    autosuggestions.enable = true;
 | 
			
		||||
    syntaxHighlighting.enable = true;
 | 
			
		||||
    enableLsColors = true;
 | 
			
		||||
 | 
			
		||||
    histSize = 10000;
 | 
			
		||||
    histFile = "$HOME/.zsh_history";
 | 
			
		||||
  
 | 
			
		||||
    shellAliases = {
 | 
			
		||||
      ll = "ls - l";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    ohMyZsh = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      plugins = [
 | 
			
		||||
        "sudo"
 | 
			
		||||
        #"direnv"
 | 
			
		||||
        #"fzf"
 | 
			
		||||
      ];
 | 
			
		||||
      theme = "terminalparty";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    # custom zsh options
 | 
			
		||||
    setOptions = [
 | 
			
		||||
      "HIST_IGNORE_DUPS" # do not write dupes
 | 
			
		||||
      "HIST_SAVE_NO_DUPS"
 | 
			
		||||
      "HIST_IGNORE_ALL_DUPS"
 | 
			
		||||
      "HIST_FIND_NO_DUPS"
 | 
			
		||||
      "APPEND_HISTORY" # append rather than overwrite ...?
 | 
			
		||||
      "SHARE_HISTORY" # all zsh sessions share history file
 | 
			
		||||
      "HIST_FCNTL_LOCK" # useful to prevent lockups ...? see github
 | 
			
		||||
      "HIST_IGNORE_SPACE" # add space before command to not write to history
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user