mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	
							
								
								
									
										9
									
								
								plugins/virtualenv/virtualenv.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								plugins/virtualenv/virtualenv.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | function virtualenv_prompt_info(){ | ||||||
|  |   local virtualenv_path="$VIRTUAL_ENV" | ||||||
|  |   if [[ -n $virtualenv_path ]]; then | ||||||
|  |     local virtualenv_name=`basename $virtualenv_path` | ||||||
|  |     printf "%s[%s] " "%{${fg[yellow]}%}" $virtualenv_name | ||||||
|  |   fi | ||||||
|  | } | ||||||
|  |  | ||||||
|  | export VIRTUAL_ENV_DISABLE_PROMPT=1 | ||||||
		Reference in New Issue
	
	Block a user