Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
b85e1dd5
Unverified
Commit
b85e1dd5
authored
Aug 18, 2021
by
Marc Cornellà
Browse files
fix(pyenv): fix for checking if pyenv-virtualenv is installed
Fixes #8467
parent
10f3e0d4
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/pyenv/pyenv.plugin.zsh
View file @
b85e1dd5
...
...
@@ -46,16 +46,20 @@ For more info go to https://github.com/pyenv/pyenv/#installation.
EOF
# Configuring in .zshrc only makes pyenv available for interactive shells
export
PYENV_ROOT
=
$dir
export
PYENV_ROOT
=
"
$dir
"
export
PATH
=
"
$PYENV_ROOT
/bin:
$PATH
"
eval
"
$(
pyenv init
--path
)
"
fi
fi
if
[[
$FOUND_PYENV
-eq
1
]]
;
then
if
[[
-z
"
$PYENV_ROOT
"
]]
;
then
export
PYENV_ROOT
=
"
$(
pyenv root
)
"
fi
eval
"
$(
pyenv init -
--no-rehash
zsh
)
"
if
((
${
+commands[
pyenv-virtualenv
-init]
}
))
;
then
if
[[
-d
"
$PYENV_ROOT
/plugins/
pyenv-virtualenv
"
]]
;
then
eval
"
$(
pyenv virtualenv-init - zsh
)
"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment