mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Make steeef theme much faster by not iterating through all history (#6359)
* Make steef much faster by not printing all history each time * Use whence -c to expand shell functions as well * Use $2 (expanded command about to be ran)
This commit is contained in:
		
							parent
							
								
									c7185c35f3
								
							
						
					
					
						commit
						604f580f05
					
				@ -62,7 +62,7 @@ zstyle ':vcs_info:*:prompt:*' nvcsformats   ""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function steeef_preexec {
 | 
			
		||||
    case "$(history $HISTCMD)" in
 | 
			
		||||
    case "$2" in
 | 
			
		||||
        *git*)
 | 
			
		||||
            PR_GIT_UPDATE=1
 | 
			
		||||
            ;;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user