Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
b85e1dd5
Unverified
Commit
b85e1dd5
authored
Aug 18, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(pyenv): fix for checking if pyenv-virtualenv is installed
Fixes #8467
parent
10f3e0d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pyenv.plugin.zsh
plugins/pyenv/pyenv.plugin.zsh
+6
-2
No files found.
plugins/pyenv/pyenv.plugin.zsh
View file @
b85e1dd5
...
@@ -46,16 +46,20 @@ For more info go to https://github.com/pyenv/pyenv/#installation.
...
@@ -46,16 +46,20 @@ For more info go to https://github.com/pyenv/pyenv/#installation.
EOF
EOF
# Configuring in .zshrc only makes pyenv available for interactive shells
# Configuring in .zshrc only makes pyenv available for interactive shells
export
PYENV_ROOT
=
$dir
export
PYENV_ROOT
=
"
$dir
"
export
PATH
=
"
$PYENV_ROOT
/bin:
$PATH
"
export
PATH
=
"
$PYENV_ROOT
/bin:
$PATH
"
eval
"
$(
pyenv init
--path
)
"
eval
"
$(
pyenv init
--path
)
"
fi
fi
fi
fi
if
[[
$FOUND_PYENV
-eq
1
]]
;
then
if
[[
$FOUND_PYENV
-eq
1
]]
;
then
if
[[
-z
"
$PYENV_ROOT
"
]]
;
then
export
PYENV_ROOT
=
"
$(
pyenv root
)
"
fi
eval
"
$(
pyenv init -
--no-rehash
zsh
)
"
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
)
"
eval
"
$(
pyenv virtualenv-init - zsh
)
"
fi
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