mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Verification of convert inside the function
Depending on when the path is declared this solution would work in any case
This commit is contained in:
		
							parent
							
								
									44b23ae194
								
							
						
					
					
						commit
						8309b0a19b
					
				@ -7,10 +7,11 @@
 | 
			
		||||
# Github: https://github.com/posva/catimg                                      #
 | 
			
		||||
################################################################################
 | 
			
		||||
 | 
			
		||||
if [[ -x  `which convert` ]]; then
 | 
			
		||||
  function catimg() {
 | 
			
		||||
 | 
			
		||||
function catimg() {
 | 
			
		||||
  if [[ -x  `which convert` ]]; then
 | 
			
		||||
    zsh $ZSH/plugins/catimg/catimg.sh $@
 | 
			
		||||
  }
 | 
			
		||||
else
 | 
			
		||||
  echo "catimg need convert (ImageMagick) to work)"
 | 
			
		||||
fi
 | 
			
		||||
  else
 | 
			
		||||
    echo "catimg need convert (ImageMagick) to work)"
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user