mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	fix(macos): use command man instead of man (#13046)
				
					
				
			This commit is contained in:
		
							parent
							
								
									f81259fb34
								
							
						
					
					
						commit
						750d3ac4b4
					
				@ -271,7 +271,7 @@ function man-preview() {
 | 
				
			|||||||
  [[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1 [command2 ...]" && return 1
 | 
					  [[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1 [command2 ...]" && return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  local page
 | 
					  local page
 | 
				
			||||||
  for page in "${(@f)"$(man -w $@)"}"; do
 | 
					  for page in "${(@f)"$(command man -w $@)"}"; do
 | 
				
			||||||
    command mandoc -Tpdf $page | open -f -a Preview
 | 
					    command mandoc -Tpdf $page | open -f -a Preview
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user