[zsh] Update shell init: rc
This commit is contained in:
		
							parent
							
								
									b09d523218
								
							
						
					
					
						commit
						c30b46a88b
					
				
					 26 changed files with 479 additions and 462 deletions
				
			
		
							
								
								
									
										23
									
								
								zsh/func/init_zsh_history
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								zsh/func/init_zsh_history
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
#!/usr/bin/env zsh
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
function init_zsh_history
 | 
			
		||||
{
 | 
			
		||||
    shell-log 'Setting up history'
 | 
			
		||||
 | 
			
		||||
    setopt \
 | 
			
		||||
        APPEND_HISTORY \
 | 
			
		||||
        EXTENDED_HISTORY \
 | 
			
		||||
        INC_APPEND_HISTORY \
 | 
			
		||||
        HIST_FIND_NO_DUPS \
 | 
			
		||||
        HIST_IGNORE_SPACE \
 | 
			
		||||
        HIST_NO_STORE \
 | 
			
		||||
        HIST_IGNORE_DUPS \
 | 
			
		||||
        HIST_REDUCE_BLANKS
 | 
			
		||||
 | 
			
		||||
    HISTSIZE=1000000
 | 
			
		||||
    SAVEHIST=1000000
 | 
			
		||||
    HISTFILE="$HOME/.zhistory"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
init_zsh_history "$@"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue