It seems that the Pure prompt does not respect the changeps1: False setting in my ~/.condarc. When not using the Pure prompt the virtual environment name is hidden as expected.
prompt_pure_system_report
):''
❯
1.10.3
export VIRTUAL_ENV_DISABLE_PROMPT=12
typeset -g PROMPT=$'%F{${prompt_pure_colors[path]}}%~%f %}%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f '
I wish to hide the current Conda environment from the second line of the Pure prompt. Adding changeps1: False to my ~/.condarc has no effect when using Pure.
~/.zshrc
with Pure deactivated:export ZSH="/Users/matt/.oh-my-zsh"
#ZSH_THEME=""
#autoload -U promptinit; promptinit
#prompt pure
__conda_setup="$('/Users/matt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/matt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/matt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/matt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
Showing the configuration is set to False, and activating Conda:
matt@Matt MacBook\n ~ % conda config --show-sources
==> /Users/matt/.condarc <==
auto_activate_base: False
changeps1: False
env_prompt:
ssl_verify: True
channels:
- defaults
- ostrokach
- rwest
- vgauthier
matt@Matt MacBook\n ~ % conda activate
matt@Matt MacBook\n ~ % conda info
active environment : base
active env location : /Users/matt/anaconda3
shell level : 1
user config file : /Users/matt/.condarc
populated config files : /Users/matt/.condarc
conda version : 4.8.3
conda-build version : 3.17.8
python version : 3.7.3.final.0
virtual packages : __osx=10.15.2
base environment : /Users/matt/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://conda.anaconda.org/ostrokach/osx-64
https://conda.anaconda.org/ostrokach/noarch
https://conda.anaconda.org/rwest/osx-64
https://conda.anaconda.org/rwest/noarch
https://conda.anaconda.org/vgauthier/osx-64
https://conda.anaconda.org/vgauthier/noarch
package cache : /Users/matt/anaconda3/pkgs
/Users/matt/.conda/pkgs
envs directories : /Users/matt/anaconda3/envs
/Users/matt/.conda/envs
platform : osx-64
user-agent : conda/4.8.3 requests/2.23.0 CPython/3.7.3 Darwin/19.2.0 OSX/10.15.2
UID:GID : 501:20
netrc file : /Users/matt/.netrc
offline mode : False
~/.zshrc
with Pure activated:export ZSH="/Users/matt/.oh-my-zsh"
ZSH_THEME=""
autoload -U promptinit; promptinit
prompt pure
__conda_setup="$('/Users/matt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/matt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/matt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/matt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
Showing the configuration is set to False, and activating Conda:
~
❯ conda config --show-sources
==> /Users/matt/.condarc <==
auto_activate_base: False
changeps1: False
env_prompt:
ssl_verify: True
channels:
- defaults
- ostrokach
- rwest
- vgauthier
~
❯ conda activate
~
base ❯ conda info
active environment : base
active env location : /Users/matt/anaconda3
shell level : 1
user config file : /Users/matt/.condarc
populated config files : /Users/matt/.condarc
conda version : 4.8.3
conda-build version : 3.17.8
python version : 3.7.3.final.0
virtual packages : __osx=10.15.2
base environment : /Users/matt/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://conda.anaconda.org/ostrokach/osx-64
https://conda.anaconda.org/ostrokach/noarch
https://conda.anaconda.org/rwest/osx-64
https://conda.anaconda.org/rwest/noarch
https://conda.anaconda.org/vgauthier/osx-64
https://conda.anaconda.org/vgauthier/noarch
package cache : /Users/matt/anaconda3/pkgs
/Users/matt/.conda/pkgs
envs directories : /Users/matt/anaconda3/envs
/Users/matt/.conda/envs
platform : osx-64
user-agent : conda/4.8.3 requests/2.23.0 CPython/3.7.3 Darwin/19.2.0 OSX/10.15.2
UID:GID : 501:20
netrc file : /Users/matt/.netrc
offline mode : False
Thanks in advance for any help anyone is able to give. I believe it may have something to do with export VIRTUAL_ENV_DISABLE_PROMPT=12
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too