mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Revert "Replace no unicode glyph on hexa string"
This reverts commit baffc3b0bd2594b789316cb135ba84fb54f50dd9.
This commit is contained in:
		
							parent
							
								
									b57118bd37
								
							
						
					
					
						commit
						61e3951e4b
					
				@ -26,7 +26,7 @@
 | 
			
		||||
# A few utility functions to make it easy and re-usable to draw segmented prompts
 | 
			
		||||
 | 
			
		||||
CURRENT_BG='NONE'
 | 
			
		||||
SEGMENT_SEPARATOR='\u2b80'
 | 
			
		||||
SEGMENT_SEPARATOR=''
 | 
			
		||||
 | 
			
		||||
# Begin a segment
 | 
			
		||||
# Takes two arguments, background and foreground. Both can be omitted,
 | 
			
		||||
@ -90,7 +90,7 @@ prompt_git() {
 | 
			
		||||
    zstyle ':vcs_info:*' formats ' %u%c'
 | 
			
		||||
    zstyle ':vcs_info:*' actionformats '%u%c'
 | 
			
		||||
    vcs_info
 | 
			
		||||
    echo -n "${ref/refs\/heads\//\u2b60 }${vcs_info_msg_0_}"
 | 
			
		||||
    echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_}"
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -110,7 +110,7 @@ prompt_hg() {
 | 
			
		||||
				# if working copy is clean
 | 
			
		||||
				prompt_segment green black
 | 
			
		||||
			fi
 | 
			
		||||
			echo -n $(hg prompt "\u2b60 {rev}@{branch}") $st
 | 
			
		||||
			echo -n $(hg prompt " {rev}@{branch}") $st
 | 
			
		||||
		else
 | 
			
		||||
			st=""
 | 
			
		||||
			rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
 | 
			
		||||
@ -124,7 +124,7 @@ prompt_hg() {
 | 
			
		||||
			else
 | 
			
		||||
				prompt_segment green black
 | 
			
		||||
			fi
 | 
			
		||||
			echo -n "\u2b60 $rev@$branch" $st
 | 
			
		||||
			echo -n " $rev@$branch" $st
 | 
			
		||||
		fi
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user