mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	Allow functions in a module to be symlinks
Add the '-' flag to the function glob which makes the other flag test against the target of the symlink, and not the symlink itself. When using rcm (https://github.com/thoughtbot/rcm), the function files are symlinked by default, but the current glob excludes them by targeting normal files (with the '.' flag). Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Sorin Ionescu
					
				
			
			
				
	
			
			
			
						parent
						
							347928193f
						
					
				
				
					commit
					817dd3aa3a
				
			
							
								
								
									
										2
									
								
								init.zsh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.zsh
									
									
									
									
									
								
							@@ -25,7 +25,7 @@ unset min_zsh_version
 | 
			
		||||
function pmodload {
 | 
			
		||||
  local -a pmodules
 | 
			
		||||
  local pmodule
 | 
			
		||||
  local pfunction_glob='^([_.]*|prompt_*_setup|README*)(.N:t)'
 | 
			
		||||
  local pfunction_glob='^([_.]*|prompt_*_setup|README*)(-.N:t)'
 | 
			
		||||
 | 
			
		||||
  # $argv is overridden in the anonymous function.
 | 
			
		||||
  pmodules=("$argv[@]")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user