added cheatsheet function for zsh.
This commit is contained in:
		
							parent
							
								
									158db6b042
								
							
						
					
					
						commit
						41e6afa642
					
				
					 3 changed files with 10 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,9 @@
 | 
			
		|||
  programs.kitty.shellIntegration.enableZshIntegration = true;
 | 
			
		||||
  services.gpg-agent.enableZshIntegration = true;
 | 
			
		||||
  programs.carapace.enableZshIntegration = false;
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    curl
 | 
			
		||||
  ];
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -38,6 +41,13 @@
 | 
			
		|||
        #allow backspacing beyond the point you entered insert mode:
 | 
			
		||||
        bindkey -v '^?' backward-delete-char
 | 
			
		||||
        bindkey "^W" backward-kill-word
 | 
			
		||||
 | 
			
		||||
        #cheat.sh is a wonderful tool, the less typing needed the better.
 | 
			
		||||
        cheat(){
 | 
			
		||||
          for i in $*; do;
 | 
			
		||||
          curl cheat.sh/$i
 | 
			
		||||
          done
 | 
			
		||||
        }
 | 
			
		||||
      ''
 | 
			
		||||
      (lib.mkIf (!config.programs.starship.enable) ''
 | 
			
		||||
        autoload -U promptinit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue