mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	change mortalscumbag to use core git_current_branch (#6965)
This commit is contained in:
		
							parent
							
								
									7cba6bb038
								
							
						
					
					
						commit
						f09fed6195
					
				@ -10,7 +10,7 @@ function my_git_prompt() {
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  # is branch behind?
 | 
			
		||||
  if $(echo "$(git log HEAD..origin/$(current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
 | 
			
		||||
  if $(echo "$(git log HEAD..origin/$(git_current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
 | 
			
		||||
    STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_BEHIND"
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user