mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	fix(pyenv): fix pyenv-virtualenv detection under macOS.
This commit is contained in:
		
							parent
							
								
									3c209b00d6
								
							
						
					
					
						commit
						c6c364317d
					
				@ -78,7 +78,7 @@ if [[ $FOUND_PYENV -eq 1 ]]; then
 | 
			
		||||
  eval "$(pyenv init - --no-rehash zsh)"
 | 
			
		||||
 | 
			
		||||
  # If pyenv-virtualenv exists, load it
 | 
			
		||||
  if [[ -d "$(pyenv root)/plugins/pyenv-virtualenv" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
 | 
			
		||||
  if [[ "$(pyenv commands)" =~ "virtualenv-init" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
 | 
			
		||||
    eval "$(pyenv virtualenv-init - zsh)"
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user