mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Fix hg call when missing on archlinux with command-not-found (#5218)
This commit is contained in:
		
							parent
							
								
									cc8285b1f7
								
							
						
					
					
						commit
						a7e30b26ba
					
				@ -128,6 +128,7 @@ prompt_git() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
prompt_hg() {
 | 
			
		||||
  (( $+commands[hg] )) || return
 | 
			
		||||
  local rev status
 | 
			
		||||
  if $(hg id >/dev/null 2>&1); then
 | 
			
		||||
    if $(hg prompt >/dev/null 2>&1); then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user