mirror of
				https://github.com/ohmybash/oh-my-bash.git
				synced 2024-05-11 05:55:37 +00:00 
			
		
		
		
	themes/rr: Add Python virtual environments
https://github.com/ohmybash/oh-my-bash/issues/372#issuecomment-1325678142
This commit is contained in:
		
				
					committed by
					
						
						Koichi Murase
					
				
			
			
				
	
			
			
			
						parent
						
							58ca182422
						
					
				
				
					commit
					dd7c825762
				
			@@ -22,6 +22,12 @@ function _omb_theme_PROMPT_COMMAND() {
 | 
			
		||||
 | 
			
		||||
    PS1="${arrow}  ${user_name} ${base_directory} "
 | 
			
		||||
 | 
			
		||||
    local VIRTUALENV_THEME_PROMPT_PREFIX="${_omb_prompt_bold_purple}vitualenv:(${_omb_prompt_reset_color}"
 | 
			
		||||
    local VIRTUALENV_THEME_PROMPT_SUFFIX="${_omb_prompt_bold_purple}) ${_omb_prompt_reset_color}"
 | 
			
		||||
    local python_venv; _omb_prompt_get_python_venv
 | 
			
		||||
  
 | 
			
		||||
    PS1+=${python_venv}
 | 
			
		||||
 | 
			
		||||
    local scm_info=$(scm_prompt_info)
 | 
			
		||||
 | 
			
		||||
    PS1+=${scm_info:+$scm_info }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user