Virtual env name doesn't show after reloading zsh
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Reproduce the issue in zsh by activating a virtual environment, sourcing ~/.zshrc, and checking whether the prompt still shows its name. Read the pyenv-virtualenv zsh integration and the behavior of pyenv virtualenvs; done means the active environment name remains visible after reloading the shell configuration.
由索引模型根据 Issue 内容生成。
描述
Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.
Prerequisite
- Make sure your problem is not listed in the common build problems.
- Make sure no duplicated issue has already been reported in the pyenv-virtualenv issues. You should look in closed issues, too.
- Make sure you are not asking us to help solving your specific issue.
- GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
- Make sure your problem is not derived from packaging (e.g. Homebrew).
- Please refer to the package documentation for the installation issues, etc.
- Make sure your problem is not derived from other plugins.
- This repository is maintaining the
pyenv-virtualenvplugin only. Please refrain from reporting issues of other plugins here.
- This repository is maintaining the
Description
- Platform information (e.g. Ubuntu Linux 20.04): OSX
- OS architecture (e.g. amd64): M1
- pyenv version: 2.2.5
- pyenv-virtualenv version: 1.1.5
- Python version: 3.10
- [N/A] virtualenv version (if installed):
- [N/A] Please attach the debug log of a faulty Pyenv invocation as a gist
- If the problem happens in a Pyenv invocation, you can turn on debug logging by setting
PYENV_DEBUG=1, e.g.env PYENV_DEBUG=1 pyenv install -v 3.6.4 - If the problem happens outside of a Pyenv invocation, get the debug log like this:
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' set -x <reproduce the problem> set +x
- If the problem happens in a Pyenv invocation, you can turn on debug logging by setting
If I start my virtual environment for the first time, I can see it:
(my-env) user@machine %
However, if I reload my zsh:
source ~/.zshrc
The name disappears even though the env is still activated
user@machine %
I can only check with:
pyenv virtualenvs
I added a custom script in my .zshrc to show the virtual env name after reloading.
- 主要语言
- Shell
- 星标
- 6.7k
- 派生
- 433
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 11
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pyenv/pyenv-virtualenv 的其他 Issue
-
Document the virtualenv, activate and deactivate hooks可能已有人在做 @officialasishkumar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
pyenv/pyenv-virtualenv#552 ·
维护者通常 1 天内回复
-
Creating a virtualenv from system leaves a self-referencing symlink inside it可能已有人在做 @dhananjay6561 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
pyenv/pyenv-virtualenv#548 · 1 条评论 ·
维护者通常 1 天内回复
-
virtualenv-delete with a trailing slash can remove all of $PYENV_ROOT/versions可能已有人在做 @dhananjay6561 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
pyenv/pyenv-virtualenv#546 · 1 条评论 ·
维护者通常 1 天内回复
-
Fish: activating a conda env doesn't set CONDA_PREFIX or run its activate.d/deactivate.d scripts可能已有人在做 @officialasishkumar 今天认领。 未关闭
难度 3/5 1-2 天 新手友好度 76/100
pyenv/pyenv-virtualenv#550 ·
维护者通常 1 天内回复
-
`pyenv virtualenv (version) (name)` ignores specified version and uses homebrew's `python` version未关闭
难度 3/5 半天 新手友好度 55/100
pyenv/pyenv-virtualenv#531 ·
维护者通常 1 天内回复
查看 pyenv/pyenv-virtualenv 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
Abdk4Moura/tunlion#1014 ·
维护者通常 1 天内回复
-
icon request
难度 1/5 1 小时以内 新手友好度 85/100
PapirusDevelopmentTeam/papirus-icon-theme#4401 ·
维护者通常 3 天内回复
-
package-update
难度 1/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复