- Use autoload +X in do_init_functions - Properly redirect stdout and stderr in do_init_functions and init_env_vi so they don't print anything
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env zsh
 | 
						|
# Eryn Wells <eryn@erynwells.me>
 | 
						|
 | 
						|
for func in ${(P)${1}}; do
 | 
						|
    if autoload +X -Uz $func &> /dev/null; then
 | 
						|
        $func
 | 
						|
    fi
 | 
						|
done
 |