mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Make the virtualenv plugin themable
This commit is contained in:
		
							parent
							
								
									c79e5a97a9
								
							
						
					
					
						commit
						d608fbfc7f
					
				@ -1,7 +1,6 @@
 | 
			
		||||
function virtualenv_prompt_info(){
 | 
			
		||||
  if [[ -n $VIRTUAL_ENV ]]; then
 | 
			
		||||
    printf "%s[%s] " "%{${fg[yellow]}%}" ${${VIRTUAL_ENV}:t}
 | 
			
		||||
  fi
 | 
			
		||||
  [[ -n ${VIRTUAL_ENV} ]] || return
 | 
			
		||||
  echo "${ZSH_THEME_VIRTUALENV_PREFIX:=[}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX:=]}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# disables prompt mangling in virtual_env/bin/activate
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user