mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	make sure cache dir exists, just like log dir
This commit is contained in:
		
							parent
							
								
									5756ea0101
								
							
						
					
					
						commit
						7478b754a1
					
				
							
								
								
									
										4
									
								
								cache/.easter-egg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								cache/.easter-egg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
This file is only here so that Git will keep a cache directory as .gitignore is ignoring all the files within it.
 | 
			
		||||
 | 
			
		||||
Feel free to add love notes for people here.
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,11 @@
 | 
			
		||||
# reload zshrc
 | 
			
		||||
function src()
 | 
			
		||||
{
 | 
			
		||||
  local cache="$ZSH/cache"
 | 
			
		||||
  autoload -U compinit zrecompile
 | 
			
		||||
  compinit -d "$ZSH/cache/zcomp-$HOST"
 | 
			
		||||
  compinit -d "$cache/zcomp-$HOST"
 | 
			
		||||
 | 
			
		||||
  for f in ~/.zshrc "$ZSH/cache/zcomp-$HOST"; do
 | 
			
		||||
  for f in ~/.zshrc "$cache/zcomp-$HOST"; do
 | 
			
		||||
    zrecompile -p $f && command rm -f $f.zwc.old
 | 
			
		||||
  done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user